Skip to content
Browse files

Added Content-Type for JS and CSS files.

  • Loading branch information...
1 parent dc83f9a commit 1b6f36bdeaad8795fab8f023c057f9a330efbdfd @nicolasff committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 cmd.c
View
3 cmd.c
@@ -221,6 +221,9 @@ cmd_select_format(struct cmd *cmd, const char *uri, size_t uri_len, formatting_f
{.s = "png", .sz = 3, .f = custom_type_reply, .ct = "image/png"},
{.s = "jpg", .sz = 3, .f = custom_type_reply, .ct = "image/jpeg"},
{.s = "jpeg", .sz = 4, .f = custom_type_reply, .ct = "image/jpeg"},
+
+ {.s = "js", .sz = 2, .f = custom_type_reply, .ct = "application/javascript"},
+ {.s = "css", .sz = 3, .f = custom_type_reply, .ct = "text/css"},
};
/* default */

0 comments on commit 1b6f36b

Please sign in to comment.
Something went wrong with that request. Please try again.