io: return JSON responses with text/plain mimetype for IE 8 / IE 9 compatibility
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 4 Nov 2013 23:52:13 +0000 (23:52 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 4 Nov 2013 23:52:13 +0000 (23:52 +0000)
luci2/src/io/main.c

index 83a3bbc..3990e79 100644 (file)
@@ -270,7 +270,7 @@ response(bool success, const char *message)
        struct stat s;
 
        printf("Status: 200 OK\r\n");
-       printf("Content-Type: application/json\r\n\r\n{\n");
+       printf("Content-Type: text/plain\r\n\r\n{\n");
 
        if (success)
        {