[cpp-sp COMMIT] /branches/REL_2/shibsp/handler/impl/DiscoveryFeed.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Sun May 5 22:49:14 EDT 2013
Author: scantor
Date: Sun May 5 22:49:14 2013
New Revision: 3844
URL: http://svn.shibboleth.net/view/cpp-sp?rev=3844&view=rev
Log:
https://issues.shibboleth.net/jira/browse/SSPCPP-551
Modified:
branches/REL_2/shibsp/handler/impl/DiscoveryFeed.cpp
Modified: branches/REL_2/shibsp/handler/impl/DiscoveryFeed.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/handler/impl/DiscoveryFeed.cpp?rev=3844&r1=3843&r2=3844&view=diff
==============================================================================
--- branches/REL_2/shibsp/handler/impl/DiscoveryFeed.cpp (original)
+++ branches/REL_2/shibsp/handler/impl/DiscoveryFeed.cpp Sun May 5 22:49:14 2013
@@ -171,7 +171,7 @@
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 @@
}
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 @@
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) {
More information about the commits
mailing list