]> granicus.if.org Git - pdns/commitdiff
dnsdist: Remove charset from Content-Type for application/json
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 14 Jan 2016 13:28:07 +0000 (14:28 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 14 Jan 2016 13:28:07 +0000 (14:28 +0100)
pdns/dnsdist-web.cc

index 44315bde1ca3b4777c8b8f8569efdf7631770dce..e9c2c517a36f9d38a9bfbfde1e8f324fed4812c7 100644 (file)
@@ -120,7 +120,7 @@ static void connectionThread(int sock, ComboAddress remote, string password)
         }
         Json my_json = obj;
         resp.body=my_json.dump();
-        resp.headers["Content-Type"] = "application/json" + charset;
+        resp.headers["Content-Type"] = "application/json";
       }
       else if(command=="dynblocklist") {
         Json::object obj;
@@ -136,7 +136,7 @@ static void connectionThread(int sock, ComboAddress remote, string password)
         }
         Json my_json = obj;
         resp.body=my_json.dump();
-        resp.headers["Content-Type"] = "application/json" + charset;
+        resp.headers["Content-Type"] = "application/json";
       }
       else {
         resp.status=404;
@@ -215,7 +215,7 @@ static void connectionThread(int sock, ComboAddress remote, string password)
        { "acl", acl},
        { "local", localaddresses}
       };
-      resp.headers["Content-Type"] = "application/json" + charset;
+      resp.headers["Content-Type"] = "application/json";
       resp.body=my_json.dump();
 
     }