[cpp-sp] branch master updated: SSPCPP-887 - MDQ metadata provider does not include Accept header
Scott Cantor
cantor.2 at osu.edu
Wed Feb 26 17:50:51 EST 2020
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=782003c9f31ac43a4975d42a9709d6bb7ede3748
The following commit(s) were added to refs/heads/master by this push:
new 782003c SSPCPP-887 - MDQ metadata provider does not include Accept header
782003c is described below
commit 782003c9f31ac43a4975d42a9709d6bb7ede3748
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Feb 26 17:48:24 2020 -0500
SSPCPP-887 - MDQ metadata provider does not include Accept header
https://issues.shibboleth.net/jira/browse/SSPCPP-887
---
shibsp/metadata/DynamicMetadataProvider.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/shibsp/metadata/DynamicMetadataProvider.cpp b/shibsp/metadata/DynamicMetadataProvider.cpp
index 41cd687..9bfb6d1 100644
--- a/shibsp/metadata/DynamicMetadataProvider.cpp
+++ b/shibsp/metadata/DynamicMetadataProvider.cpp
@@ -372,6 +372,9 @@ EntityDescriptor* DynamicMetadataProvider::resolve(const MetadataProvider::Crite
if (http) {
pair<bool,bool> flag = relyingParty->getBool("chunkedEncoding");
http->useChunkedEncoding(flag.first && flag.second);
+ if (m_isMDQ) {
+ http->setRequestHeader("Accept", "application/samlmetadata+xml");
+ }
http->setRequestHeader("Xerces-C", XERCES_FULLVERSIONDOT);
http->setRequestHeader("XML-Security-C", XSEC_FULLVERSIONDOT);
http->setRequestHeader("XMLTooling-C", gXMLToolingDotVersionStr);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list