1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed generation time being added to non-200 responses.

This commit is contained in:
Uncled1023 2016-02-24 17:02:26 -08:00
parent 0aab15f446
commit 0ac5c08485

View File

@ -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;