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:
215fb45
)
https://issues.shibboleth.net/jira/browse/SSPCPP-175
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 6 Jan 2009 19:57:03 +0000
(19:57 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 6 Jan 2009 19:57:03 +0000
(19:57 +0000)
nsapi_shib/nsapi_shib.cpp
patch
|
blob
|
history
diff --git
a/nsapi_shib/nsapi_shib.cpp
b/nsapi_shib/nsapi_shib.cpp
index
c0eb654
..
1523c78
100644
(file)
--- a/
nsapi_shib/nsapi_shib.cpp
+++ b/
nsapi_shib/nsapi_shib.cpp
@@
-351,6
+351,11
@@
public:
const char* ru = pblock_findval("auth-user", m_rq->vars);
return ru ? ru : "";
}
+ void setContentType(const char* type) {
+ // iPlanet seems to have a case folding problem.
+ param_free(pblock_remove("content-type", m_rq->srvhdrs));
+ setResponseHeader("Content-Type", type);
+ }
void setResponseHeader(const char* name, const char* value) {
pblock_nvinsert(name, value, m_rq->srvhdrs);
}