#102 Filter out DEBUG requests under the debugger.
This commit is contained in:
parent
4f7e4cffe6
commit
ed85f504d8
|
|
@ -2,6 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
@ -61,6 +62,13 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Debugger.IsAttached && string.Equals("DEBUG", httpContext.Request.Method, StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
// The Visual Studio debugger tooling sends a DEBUG request to make IIS & AspNetCoreModule launch the process
|
||||||
|
// so the debugger can attach. Filter out this request from the app.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_options.ForwardClientCertificate)
|
if (_options.ForwardClientCertificate)
|
||||||
{
|
{
|
||||||
var header = httpContext.Request.Headers[MSAspNetCoreClientCert];
|
var header = httpContext.Request.Headers[MSAspNetCoreClientCert];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue