Browse Source

Fixed generation time being added to non-200 responses.

pull/29/head
Teknikode 6 years ago
parent
commit
0ac5c08485
  1. 2
      Teknik/Modules/PerformanceMonitorModule.cs

2
Teknik/Modules/PerformanceMonitorModule.cs

@ -28,7 +28,7 @@ namespace Teknik.Modules @@ -28,7 +28,7 @@ namespace Teknik.Modules
timer.Stop();
// Don't interfere with non-HTML responses
if (requestContext.Response.ContentType == "text/html")
if (requestContext.Response.ContentType == "text/html" && requestContext.Response.StatusCode == 200)
{
Uri requestUrl = requestContext.Request.Url;

Loading…
Cancel
Save