Fix flaky test_download_with_proxy_https_timeout(). (#7250)

This commit is contained in:
Andrey Rakhmatullin 2026-02-13 11:45:09 +03:00 committed by GitHub
parent 2c3ecbff71
commit 0e1526ed30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -308,7 +308,8 @@ class UriResource(resource.Resource):
# ToDo: implement proper HTTPS proxy tests, not faking them.
if request.method != b"CONNECT":
return request.uri
return b""
request.transport.write(b"HTTP/1.1 200 Connection established\r\n\r\n")
return NOT_DONE_YET
class ResponseHeadersResource(resource.Resource):