mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Fixed issue where signalr and miniprofiler weren't playing nice with each other.
This commit is contained in:
@@ -71,12 +71,15 @@ namespace NzbDrone.Web.App_Start
|
||||
//if (request.IsLocal) { MiniProfiler.Start(); }
|
||||
|
||||
if (!EnviromentProvider.IsProduction || ProfilerHelper.Enabled())
|
||||
{
|
||||
var requestPath = ((HttpApplication)sender).Request.AppRelativeCurrentExecutionFilePath.ToLower();
|
||||
if (!requestPath.StartsWith("~/signalr") && !requestPath.EndsWith("notification/comet"))
|
||||
{
|
||||
MiniProfiler.Start();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// TODO: You can control who sees the profiling information
|
||||
/*
|
||||
context.AuthenticateRequest += (sender, e) =>
|
||||
|
Reference in New Issue
Block a user