mirror of https://github.com/scrapy/scrapy.git
Fix flaky test_download_with_proxy_https_timeout(). (#7250)
This commit is contained in:
parent
2c3ecbff71
commit
0e1526ed30
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue