[shibboleth-sp2] 94/119: Add User-Agent header to SOAP messages.
Ferenc Wágner
wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi-guest pushed a commit to annotated tag 1.3.1
in repository shibboleth-sp2.
commit 7714f1208be93cc21bb92498b2e3eb6c12efcfb8
Author: Scott Cantor <cantor.2 at osu.edu>
Date: Wed Oct 24 20:26:58 2007 +0000
Add User-Agent header to SOAP messages.
---
shib-target/ShibHTTPHook.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/shib-target/ShibHTTPHook.cpp b/shib-target/ShibHTTPHook.cpp
index f7b1437..f9843c4 100644
--- a/shib-target/ShibHTTPHook.cpp
+++ b/shib-target/ShibHTTPHook.cpp
@@ -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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git
More information about the Pkg-shibboleth-devel
mailing list