Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Send JS in JSON format

  • Loading branch information...
commit 7286cfe73fd167c67bd309ec726e8fe498e96965 1 parent 33f9a2f
@nicolasff authored
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"},
};
Please sign in to comment.
Something went wrong with that request. Please try again.