summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 21:34:17 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 21:34:17 +0800
commit28d8498b13cd17092cb9fc4efbcfc963ad764c11 (patch)
tree45b3a27ba7c8a951067ef2c7a5bc8fc9c983f97b
parentbacdaf69179cb38ee459a13616c31d3c0c3a130e (diff)
Add .data content type
-rw-r--r--shopify.c3
1 files changed, 3 insertions, 0 deletions
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);
}