diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2024-12-26 16:24:31 +0100 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2024-12-26 16:25:18 +0100 |
commit | 016992ad866767edd93e2673c1c31dccd6cc2fc7 (patch) | |
tree | 8d3fccf3d5ad3958e55b2ad80ee7539c8f49408c | |
parent | 2e04b2c23c66a42372d0ecaea2b0f4b2c7b7c7e5 (diff) |
fix mime type for html responses
-rw-r--r-- | browse.c | 2 | ||||
-rw-r--r-- | delete.c | 2 | ||||
-rw-r--r-- | upload.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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); @@ -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); @@ -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); |