Skip to content

Commit

Permalink
Do not enforce stream in-body inspection flag for IIS.
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Krivopalov <vlkrivop@microsoft.com>
  • Loading branch information
vkrivopalov committed Mar 13, 2019
1 parent 3fa2cac commit 87bd3ad
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions iis/mymodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,11 +972,6 @@ CMyHttpModule::OnBeginRequest(IHttpContext* httpContext, IHttpEventProvider* pro
rsc->responseProcessingEnabled = (config->config->resbody_access == 1);
RequestStoredContext* context = rsc.get();

// on IIS we force input stream inspection flag, because its absence does not add any performance gain
// it's because on IIS request body must be restored each time it was read
//
modsecSetConfigForIISRequestBody(r);

StoreIISContext(r, rsc.get());

httpContext->GetModuleContextContainer()->SetModuleContext(rsc.release(), g_pModuleContext);
Expand Down

0 comments on commit 87bd3ad

Please # to comment.