#102 Filter out DEBUG requests under the debugger.
This commit is contained in:
Родитель
4f7e4cffe6
Коммит
ed85f504d8
|
@ -2,6 +2,7 @@
|
|||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Security.Principal;
|
||||
using System.Threading.Tasks;
|
||||
|
@ -61,6 +62,13 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
|
|||
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)
|
||||
{
|
||||
var header = httpContext.Request.Headers[MSAspNetCoreClientCert];
|
||||
|
|
Загрузка…
Ссылка в новой задаче