git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/trunk@169
fb386ef7-a10c-0410-8ebf-
fd3f8e989ab0
log.debug("validating input");
string s = genericRequest.getContentType();
- if (s != "text/xml") {
- log.warn("ignoring incorrect Content Type (%s)", s.c_str() ? s.c_str() : "none");
+ if (s.find("text/xml") == string::npos) {
+ log.warn("ignoring incorrect content type (%s)", s.c_str() ? s.c_str() : "none");
return NULL;
}
log.debug("validating input");
string s = genericRequest.getContentType();
- if (s != "text/xml") {
- log.warn("ignoring incorrect Content Type (%s)", s.c_str() ? s.c_str() : "none");
+ if (s.find("text/xml") == string::npos) {
+ log.warn("ignoring incorrect content type (%s)", s.c_str() ? s.c_str() : "none");
return NULL;
}