From 28d8498b13cd17092cb9fc4efbcfc963ad764c11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 20 Sep 2022 21:34:17 +0800 Subject: Add .data content type --- shopify.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shopify.c b/shopify.c index fd76ad5..12acad9 100644 --- a/shopify.c +++ b/shopify.c @@ -180,11 +180,14 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, MHD_RESPMEM_MUST_COPY); static const char *js_type = "application/javascript"; static const char *wasm_type = "application/wasm"; + static const char *data_type = "text/html"; const char *type = NULL; if (!strcmp(dot, ".js")) type = js_type; else if (!strcmp(dot, ".wasm")) type = wasm_type; + else if (!strcmp(dot, ".data")) + type = data_type; MHD_add_response_header(res, "Content-Type", type); ret = MHD_queue_response(con, MHD_HTTP_OK, res); } -- cgit v1.2.3