https://issues.shibboleth.net/jira/browse/SSPCPP-175
authorScott Cantor <cantor.2@osu.edu>
Tue, 6 Jan 2009 19:57:03 +0000 (19:57 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 6 Jan 2009 19:57:03 +0000 (19:57 +0000)
nsapi_shib/nsapi_shib.cpp

index c0eb654..1523c78 100644 (file)
@@ -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);
   }