From: Remi Gacogne Date: Thu, 14 Jan 2016 13:28:07 +0000 (+0100) Subject: dnsdist: Remove charset from Content-Type for application/json X-Git-Tag: dnsdist-1.0.0-alpha2~77^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d1c98df49139e879264105ce4f0b7505d51b056;p=thirdparty%2Fpdns.git dnsdist: Remove charset from Content-Type for application/json --- diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index 44315bde1c..e9c2c517a3 100644 --- a/pdns/dnsdist-web.cc +++ b/pdns/dnsdist-web.cc @@ -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(); }