diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 21:34:17 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 21:34:17 +0800 |
commit | 28d8498b13cd17092cb9fc4efbcfc963ad764c11 (patch) | |
tree | 45b3a27ba7c8a951067ef2c7a5bc8fc9c983f97b | |
parent | bacdaf69179cb38ee459a13616c31d3c0c3a130e (diff) |
Add .data content type
-rw-r--r-- | shopify.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |