Support multiple response headers with the same name.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 26 Nov 2007 03:27:54 +0000 (03:27 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 26 Nov 2007 03:27:54 +0000 (03:27 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2636 cb58f699-b61c-0410-a6fe-9272a202ed29

shibsp/handler/impl/RemotedHandler.cpp

index 238f1e3..b8580e2 100644 (file)
@@ -197,8 +197,9 @@ void RemotedResponse::setResponseHeader(const char* name, const char* value)
         m_output.structure();
     DDF hdrs = m_output["headers"];
     if (hdrs.isnull())
-        hdrs = m_output.addmember("headers").structure();
-    hdrs.addmember(name).string(value);
+        hdrs = m_output.addmember("headers").list();
+    DDF h = DDF(name).string(value);
+    hdrs.add(h);
 }
 
 long RemotedResponse::sendRedirect(const char* url)