Permalink
Browse files

Send JS in JSON format

  • Loading branch information...
1 parent 33f9a2f commit 7286cfe73fd167c67bd309ec726e8fe498e96965 @nicolasff committed Sep 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmd.c
View
2 cmd.c
@@ -282,7 +282,7 @@ cmd_select_format(struct http_client *client, struct cmd *cmd,
{.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 = "js", .sz = 2, .f = json_reply, .ct = "application/javascript"},
{.s = "css", .sz = 3, .f = custom_type_reply, .ct = "text/css"},
};

0 comments on commit 7286cfe

Please sign in to comment.