From 53342c9f508c4b0304cd4a18b187e6dfd4c44f2f Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Mon, 6 May 2013 02:49:14 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/SSPCPP-551 --- shibsp/handler/impl/DiscoveryFeed.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shibsp/handler/impl/DiscoveryFeed.cpp b/shibsp/handler/impl/DiscoveryFeed.cpp index 19aecf3..ad567a1 100644 --- a/shibsp/handler/impl/DiscoveryFeed.cpp +++ b/shibsp/handler/impl/DiscoveryFeed.cpp @@ -171,7 +171,7 @@ pair DiscoveryFeed::run(SPRequest& request, bool isHandler) const string etag = '"' + s + '"'; request.setResponseHeader("ETag", etag.c_str()); } - request.setContentType("application/json"); + request.setContentType("application/json; charset=UTF-8"); return make_pair(true, request.sendResponse(buf)); } } @@ -197,7 +197,7 @@ pair DiscoveryFeed::run(SPRequest& request, bool isHandler) const } if (out["feed"].string()) { istringstream buf(out["feed"].string()); - request.setContentType("application/json"); + request.setContentType("application/json; charset=UTF-8"); return make_pair(true, request.sendResponse(buf)); } throw ConfigurationException("Discovery feed was empty."); @@ -223,7 +223,7 @@ pair DiscoveryFeed::run(SPRequest& request, bool isHandler) const string etag = '"' + s + '"'; request.setResponseHeader("ETag", etag.c_str()); } - request.setContentType("application/json"); + request.setContentType("application/json; charset=UTF-8"); return make_pair(true, request.sendResponse(feed)); } catch (std::exception& ex) { -- 2.1.4