[cpp-sp] branch master updated: SSPCPP-715 Allow compressed on Dynamic Metadata Fetching.

Rod Widdowson rdw at steadingsoftware.com
Wed Jan 24 11:58:16 EST 2018


This is an automated email from the git hooks/post-receive script.

rdw 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=bedb5d07185f5e72fc256eda189425465ac33212

The following commit(s) were added to refs/heads/master by this push:
       new  bedb5d0   SSPCPP-715 Allow compressed on Dynamic Metadata Fetching.
bedb5d0 is described below

commit bedb5d07185f5e72fc256eda189425465ac33212
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Jan 24 16:56:44 2018 +0000

    SSPCPP-715 Allow compressed on Dynamic Metadata Fetching.
    
    https://issues.shibboleth.net/jira/browse/SSPCPP-715
    
    Make use of the new setAccpetEncoding setter on HTTPSoapTransport
    (suitably conditionalized on the transport being HPPT of course)
---
 shibsp/metadata/DynamicMetadataProvider.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/shibsp/metadata/DynamicMetadataProvider.cpp b/shibsp/metadata/DynamicMetadataProvider.cpp
index a3bcd16..d5361b8 100644
--- a/shibsp/metadata/DynamicMetadataProvider.cpp
+++ b/shibsp/metadata/DynamicMetadataProvider.cpp
@@ -306,6 +306,10 @@ EntityDescriptor* DynamicMetadataProvider::resolve(const MetadataProvider::Crite
 
     // Apply properties as directed.
     transport->setVerifyHost(m_verifyHost);
+    HTTPSOAPTransport *httpTransport = dynamic_cast<HTTPSOAPTransport*>(transport.get());
+    if (httpTransport) {
+        httpTransport->setAcceptEncoding("");
+    }
     if (m_trust.get() && m_dummyCR.get() && !transport->setTrustEngine(m_trust.get(), m_dummyCR.get()))
         throw IOException("Unable to install X509TrustEngine into transport object.");
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list