[cpp-xmltooling] branch master updated: CPPXT-144 - CURL SOAP Transport: unset Expect Header
Scott Cantor
cantor.2 at osu.edu
Thu Mar 7 11:28:50 EST 2019
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository cpp-xmltooling.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=e2d5f7fa75420ca63a1814aedd4982ff2b06ff2c
The following commit(s) were added to refs/heads/master by this push:
new e2d5f7f CPPXT-144 - CURL SOAP Transport: unset Expect Header
e2d5f7f is described below
commit e2d5f7fa75420ca63a1814aedd4982ff2b06ff2c
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Mar 7 11:27:28 2019 -0500
CPPXT-144 - CURL SOAP Transport: unset Expect Header
https://issues.shibboleth.net/jira/browse/CPPXT-144
---
xmltooling/soap/impl/CURLSOAPTransport.cpp | 3 ++-
xmltooling/util/CurlURLInputStream.cpp | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/xmltooling/soap/impl/CURLSOAPTransport.cpp b/xmltooling/soap/impl/CURLSOAPTransport.cpp
index 6ff2277..adf9481 100644
--- a/xmltooling/soap/impl/CURLSOAPTransport.cpp
+++ b/xmltooling/soap/impl/CURLSOAPTransport.cpp
@@ -90,7 +90,8 @@ namespace xmltooling {
curl_easy_setopt(m_handle,CURLOPT_USERPWD,0);
curl_easy_setopt(m_handle,CURLOPT_SSL_VERIFYHOST,2);
curl_easy_setopt(m_handle,CURLOPT_HEADERDATA,this);
- m_headers=curl_slist_append(m_headers,"Content-Type: text/xml");
+ m_headers = curl_slist_append(m_headers, "Content-Type: text/xml");
+ m_headers = curl_slist_append(m_headers, "Expect:");
}
virtual ~CURLSOAPTransport() {
diff --git a/xmltooling/util/CurlURLInputStream.cpp b/xmltooling/util/CurlURLInputStream.cpp
index 42f229e..bb985bb 100644
--- a/xmltooling/util/CurlURLInputStream.cpp
+++ b/xmltooling/util/CurlURLInputStream.cpp
@@ -305,6 +305,8 @@ void CurlURLInputStream::init(const DOMElement* e)
" libcurl/" + LIBCURL_VERSION + ' ' + OPENSSL_VERSION_TEXT;
fHeaders = curl_slist_append(fHeaders, ua.c_str());
+ fHeaders = curl_slist_append(fHeaders, "Expect:");
+
// Add User-Agent and cache headers.
curl_easy_setopt(fEasy, CURLOPT_HTTPHEADER, fHeaders);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list