From 5d1c98df49139e879264105ce4f0b7505d51b056 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 14 Jan 2016 14:28:07 +0100 Subject: [PATCH] dnsdist: Remove charset from Content-Type for application/json --- pdns/dnsdist-web.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index 44315bde1..e9c2c517a 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(); } -- 2.40.0