summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2023-08-17 18:10:02 +0200
committerVincent Douillet <vincent@vdouillet.fr>2023-08-19 17:49:54 +0200
commit7caf4597bcfb64dac04b7190dab1022f1bc4e141 (patch)
treee754d4e5bd0799dcac12ea3dc77e2f8a7b10ed54 /http.c
parent1970c9982e99daa26f7fc4c6f16b441a0aa806de (diff)
file download poc
Diffstat (limited to 'http.c')
-rw-r--r--http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http.c b/http.c
index d0fcbe8..4df7d93 100644
--- a/http.c
+++ b/http.c
@@ -35,10 +35,10 @@
#include "http.h"
void
-http_open(struct kreq * r, enum khttp code)
+http_open(struct kreq * r, enum khttp code, enum kmime mime)
{
khttp_head(r, kresps[KRESP_STATUS], "%s", khttps[code]);
- khttp_head(r, kresps[KRESP_CONTENT_TYPE], "%s", kmimetypes[r->mime]);
+ khttp_head(r, kresps[KRESP_CONTENT_TYPE], "%s", kmimetypes[mime]);
khttp_body(r);
}