From b879a405c09dc64e56ff30f83c582fb6bb439813 Mon Sep 17 00:00:00 2001 From: Mark Nottingham Date: Mon, 11 Dec 2023 10:56:42 +1100 Subject: [PATCH] Fixed: set start time on non-final responses --- redbot/resource/fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/resource/fetch.py b/redbot/resource/fetch.py index 0e582d6f..8576e270 100644 --- a/redbot/resource/fetch.py +++ b/redbot/resource/fetch.py @@ -187,7 +187,7 @@ def _response_nonfinal( self, status: bytes, phrase: bytes, res_headers: RawHeaderListType ) -> None: "Got a non-final response." - nfres = HttpResponseLinter(message_ref="A non-final response") + nfres = HttpResponseLinter(message_ref="A non-final response" start_time=time.time()) nfres.process_response_topline(self.exchange.res_version, status, phrase) nfres.process_headers(res_headers) nfres.finish_content(True)