From 016992ad866767edd93e2673c1c31dccd6cc2fc7 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Thu, 26 Dec 2024 16:24:31 +0100 Subject: fix mime type for html responses --- browse.c | 2 +- delete.c | 2 +- upload.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browse.c b/browse.c index 5bda651..b8a90d5 100644 --- a/browse.c +++ b/browse.c @@ -344,7 +344,7 @@ browse(struct kreq * r) } /* we have all the data we need, we can start to write output page */ - http_open(r, KHTTP_200, r->mime); + http_open(r, KHTTP_200, KMIME_TEXT_HTML); K_OK(khttp_puts(r, tmpl->header), r); diff --git a/delete.c b/delete.c index 29c5cb8..c6c1449 100644 --- a/delete.c +++ b/delete.c @@ -149,7 +149,7 @@ delete_get(struct kreq * r, struct http_ret * ret, struct file * file) goto end; } /* print delete form */ - http_open(r, KHTTP_200, r->mime); + http_open(r, KHTTP_200, KMIME_TEXT_HTML); K_OK(khttp_puts(r, tmpl->header), r); K_OK(khtml_open(&html, r, 0), r); diff --git a/upload.c b/upload.c index ed9ec4d..56cf2c4 100644 --- a/upload.c +++ b/upload.c @@ -148,7 +148,7 @@ upload_get(struct kreq * r, struct http_ret * ret, struct file * file) goto end; } /* print upload form */ - http_open(r, KHTTP_200, r->mime); + http_open(r, KHTTP_200, KMIME_TEXT_HTML); K_OK(khttp_puts(r, tmpl->header), r); K_OK(khtml_open(&html, r, 0), r); -- cgit v1.2.3