Add User-Agent header to SOAP messages.
authorScott Cantor <cantor.2@osu.edu>
Wed, 24 Oct 2007 20:26:58 +0000 (20:26 +0000)
committerScott Cantor <cantor.2@osu.edu>
Wed, 24 Oct 2007 20:26:58 +0000 (20:26 +0000)
shibsp/binding/impl/SOAPClient.cpp

index 711153a..ac4a438 100644 (file)
@@ -177,7 +177,8 @@ void SOAPClient::prepareTransport(SOAPTransport& transport)
     if (http) {
         flag = m_settings->getBool("chunkedEncoding");
         http->useChunkedEncoding(!flag.first || flag.second);
-        http->setRequestHeader("Shibboleth", PACKAGE_VERSION);
+        http->setRequestHeader("User-Agent", PACKAGE_NAME);
+        http->setRequestHeader(PACKAGE_NAME, PACKAGE_VERSION);
     }
 }