mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-26 09:46:04 +03:00
Merge pull request #986 from yorickvP/yorickvp/mitm-stream
filter-pypi-responses: stream package requests that hit the proxy
This commit is contained in:
commit
8235c8b5b9
@ -85,6 +85,11 @@ Response format:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
def responseheaders(flow: http.HTTPFlow) -> None:
|
||||||
|
if "/simple/" not in flow.request.url:
|
||||||
|
flow.response.stream = True
|
||||||
|
|
||||||
|
|
||||||
def response(flow: http.HTTPFlow) -> None:
|
def response(flow: http.HTTPFlow) -> None:
|
||||||
if not "/simple/" in flow.request.url:
|
if not "/simple/" in flow.request.url:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user