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)
shib-target/ShibHTTPHook.cpp

index f7b1437..f9843c4 100644 (file)
@@ -145,7 +145,9 @@ bool ShibHTTPHook::outgoing(HTTPClient* conn, void* globalCtx, void* callCtx)
     if (!conn->setSSLCallback(ssl_ctx_callback,callCtx))
         return false;
     
-    if (!conn->setRequestHeader("Shibboleth", PACKAGE_VERSION))
+    if (!conn->setRequestHeader("User-Agent", PACKAGE_NAME))
+        return false;
+    if (!conn->setRequestHeader(PACKAGE_NAME, PACKAGE_VERSION))
         return false;
     if (!conn->setRequestHeader("Xerces-C", XERCES_FULLVERSIONDOT))
         return false;