projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03cc945
)
Add User-Agent header to SOAP messages.
author
Scott Cantor
<cantor.2@osu.edu>
Wed, 24 Oct 2007 20:26:58 +0000
(20:26 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Wed, 24 Oct 2007 20:26:58 +0000
(20:26 +0000)
shib-target/ShibHTTPHook.cpp
patch
|
blob
|
history
diff --git
a/shib-target/ShibHTTPHook.cpp
b/shib-target/ShibHTTPHook.cpp
index
f7b1437
..
f9843c4
100644
(file)
--- 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;