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 83a3bbc2b22b894c29b4bf8014440fced6a137f7..3990e799dd66368a5315d76244c6c9df1d5dcd01 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)
        {