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:
parent
0aab15f446
commit
0ac5c08485
@ -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…
Reference in New Issue
Block a user