Skip to content

Commit

Permalink
Fixed: set start time on non-final responses
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Dec 10, 2023
1 parent 1919b38 commit b879a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbot/resource/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b879a40

Please sign in to comment.