projects
/
shibboleth
/
sp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
https://issues.shibboleth.net/jira/browse/SSPCPP-551
[shibboleth/sp.git]
/
shibsp
/
handler
/
impl
/
DiscoveryFeed.cpp
diff --git
a/shibsp/handler/impl/DiscoveryFeed.cpp
b/shibsp/handler/impl/DiscoveryFeed.cpp
index
19aecf3
..
ad567a1
100644
(file)
--- a/
shibsp/handler/impl/DiscoveryFeed.cpp
+++ b/
shibsp/handler/impl/DiscoveryFeed.cpp
@@
-171,7
+171,7
@@
pair<bool,long> DiscoveryFeed::run(SPRequest& request, bool isHandler) const
string etag = '"' + s + '"';
request.setResponseHeader("ETag", etag.c_str());
}
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));
}
}
return make_pair(true, request.sendResponse(buf));
}
}
@@
-197,7
+197,7
@@
pair<bool,long> DiscoveryFeed::run(SPRequest& request, bool isHandler) const
}
if (out["feed"].string()) {
istringstream buf(out["feed"].string());
}
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.");
return make_pair(true, request.sendResponse(buf));
}
throw ConfigurationException("Discovery feed was empty.");
@@
-223,7
+223,7
@@
pair<bool,long> DiscoveryFeed::run(SPRequest& request, bool isHandler) const
string etag = '"' + s + '"';
request.setResponseHeader("ETag", etag.c_str());
}
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) {
return make_pair(true, request.sendResponse(feed));
}
catch (std::exception& ex) {