Need CRLF pair when sending headers back from filter.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 11 Jun 2004 15:22:51 +0000 (15:22 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 11 Jun 2004 15:22:51 +0000 (15:22 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1123 cb58f699-b61c-0410-a6fe-9272a202ed29

isapi_shib/isapi_shib.cpp

index 28221cc..2007a05 100644 (file)
@@ -499,6 +499,7 @@ extern "C" DWORD WINAPI HttpFilterProc(PHTTP_FILTER_CONTEXT pfc, DWORD notificat
             // No acceptable cookie, and we require a session.  Generate an AuthnRequest.
             string loc("Location: ");
             loc+=shire.getAuthnRequest(targeturl.c_str());
+            loc+="\r\n";
             pfc->AddResponseHeaders(pfc,const_cast<char*>(loc.c_str()),0);
             pfc->ServerSupportFunction(pfc,SF_REQ_SEND_RESPONSE_HEADER,"302 Please Wait",0,0);
             return SF_STATUS_REQ_FINISHED;
@@ -538,6 +539,7 @@ extern "C" DWORD WINAPI HttpFilterProc(PHTTP_FILTER_CONTEXT pfc, DWORD notificat
                 delete status;
                 string loc("Location: ");
                 loc+=shire.getAuthnRequest(targeturl.c_str());
+                loc+="\r\n";
                 pfc->AddResponseHeaders(pfc,const_cast<char*>(loc.c_str()),0);
                 pfc->ServerSupportFunction(pfc,SF_REQ_SEND_RESPONSE_HEADER,"302 Please Wait",0,0);
                 return SF_STATUS_REQ_FINISHED;