Skip to content

Commit

Permalink
modified request priority to allow headers to be removed that have be…
Browse files Browse the repository at this point in the history
…en set by ProtocolSupportModule
  • Loading branch information
ph1ll committed May 15, 2014
1 parent 77d7834 commit e2739a3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions NativeCodeModule/stripheadersmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,22 @@ HRESULT __stdcall RegisterModule( DWORD dwServerVersion, IHttpModuleRegistration
UNREFERENCED_PARAMETER( dwServerVersion );
UNREFERENCED_PARAMETER( pGlobalInfo );

// Set the request notifications and exit.
return pModuleInfo->SetRequestNotifications( new StripHeadersModuleFactory, RQ_SEND_RESPONSE, 0 );
HRESULT hr;

// Set the request notifications
hr = pModuleInfo->SetRequestNotifications( new StripHeadersModuleFactory, RQ_SEND_RESPONSE, 0 );
if (FAILED(hr))
{
return hr;
}

// Set the request priority.
// Note: The priority levels are inverted for RQ_SEND_RESPONSE notifications.
hr = pModuleInfo->SetPriorityForRequestNotification( RQ_SEND_RESPONSE, PRIORITY_ALIAS_FIRST );
if (FAILED(hr))
{
return hr;
}

return S_OK;
}

0 comments on commit e2739a3

Please sign in to comment.