[cpp-xmltooling COMMIT] /branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Thu Jan 8 23:30:39 EST 2015
Author: scantor
Date: Thu Jan 8 23:30:39 2015
New Revision: 1039
URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=1039&view=rev
Log:
https://issues.shibboleth.net/jira/browse/CPPXT-99
Modified:
branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp
Modified: branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp?rev=1039&r1=1038&r2=1039&view=diff
==============================================================================
--- branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp (original)
+++ branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp Thu Jan 8 23:30:39 2015
@@ -535,11 +535,11 @@
m_useragent = XMLToolingConfig::getConfig().user_agent;
if (!m_useragent.empty()) {
curl_version_info_data* curlver = curl_version_info(CURLVERSION_NOW);
- m_useragent += " libcurl/";
- if (curlver)
- m_useragent = m_useragent + curlver->version + ' ' + curlver->ssl_version;
- else
- m_useragent = m_useragent + LIBCURL_VERSION + ' ' + OPENSSL_VERSION_TEXT;
+
+ if (curlver) {
+ m_useragent = m_useragent + " libcurl/" + curlver->version + ' ' + curlver->ssl_version;
+ }
+
curl_easy_setopt(m_handle, CURLOPT_USERAGENT, m_useragent.c_str());
}
More information about the commits
mailing list