mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-22 15:04:46 +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:
|
||||
if not "/simple/" in flow.request.url:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user