mirror of
https://github.com/Radarr/Radarr
synced 2024-12-28 02:40:01 +00:00
Fixed issue where signalr and miniprofiler weren't playing nice with each other.
This commit is contained in:
parent
7a3f7bf67c
commit
f651c0e23d
1 changed files with 9 additions and 6 deletions
|
@ -71,12 +71,15 @@ public void Init(HttpApplication context)
|
|||
//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) =>
|
||||
|
|
Loading…
Reference in a new issue