From 7286cfe73fd167c67bd309ec726e8fe498e96965 Mon Sep 17 00:00:00 2001 From: Nicolas Favre-Felix Date: Thu, 15 Sep 2011 22:03:05 +0100 Subject: [PATCH] Send JS in JSON format --- cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd.c b/cmd.c index 1679e9f..d193bf8 100644 --- a/cmd.c +++ b/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"}, };