projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
de1f2f6
)
https://issues.shibboleth.net/jira/browse/CPPXT-99
author
Scott Cantor
<cantor.2@osu.edu>
Fri, 9 Jan 2015 04:30:39 +0000
(
04:30
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Fri, 9 Jan 2015 04:30:39 +0000
(
04:30
+0000)
xmltooling/soap/impl/CURLSOAPTransport.cpp
patch
|
blob
|
history
diff --git
a/xmltooling/soap/impl/CURLSOAPTransport.cpp
b/xmltooling/soap/impl/CURLSOAPTransport.cpp
index
b2490fb
..
08a4553
100644
(file)
--- a/
xmltooling/soap/impl/CURLSOAPTransport.cpp
+++ b/
xmltooling/soap/impl/CURLSOAPTransport.cpp
@@
-535,11
+535,11
@@
void CURLSOAPTransport::send(istream* in)
m_useragent = XMLToolingConfig::getConfig().user_agent;
if (!m_useragent.empty()) {
curl_version_info_data* curlver = curl_version_info(CURLVERSION_NOW);
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());
}
curl_easy_setopt(m_handle, CURLOPT_USERAGENT, m_useragent.c_str());
}