Skip to content

Commit

Permalink
Fix issue #379
Browse files Browse the repository at this point in the history
  • Loading branch information
rramachand21 committed Sep 11, 2014
1 parent c38d5ce commit 762978c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/iisnode/cprotocolbridge.cpp
Expand Up @@ -704,6 +704,7 @@ void CProtocolBridge::SendHttpRequestHeaders(CNodeHttpStoredContext* context)
HRESULT hr;
DWORD length;
IHttpRequest *request;
PCSTR pszConnectionHeader = NULL;

// set the start time of the request

Expand All @@ -720,7 +721,8 @@ void CProtocolBridge::SendHttpRequestHeaders(CNodeHttpStoredContext* context)

request = context->GetHttpContext()->GetRequest();

if(stricmp(request->GetHeader(HttpHeaderConnection), "upgrade") != 0)
pszConnectionHeader = request->GetHeader(HttpHeaderConnection);
if(pszConnectionHeader == NULL || stricmp(pszConnectionHeader, "upgrade") != 0)
{
CheckError(request->SetHeader(HttpHeaderConnection, "keep-alive", 10, TRUE));
}
Expand Down

0 comments on commit 762978c

Please sign in to comment.