Add User-Agent header to SOAP messages.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 24 Oct 2007 20:26:58 +0000 (20:26 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 24 Oct 2007 20:26:58 +0000 (20:26 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2571 cb58f699-b61c-0410-a6fe-9272a202ed29

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);
     }
 }