mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
1b09002edc
Instead of having the core addon do postprocessing on body_size_limit, we add a cache to the parsing function. First, this avoids any potential issues with options and _processed getting out of sync. As anecdotal evidence, the previous implementation did not clear _processed when body_size_limit was reset to None. Second, it achieves the same end result without introducing a new concept of a "_processed" scratch space. Third, it works even if addons aren't present, and does not require workarounds as previously present in test_http2.py. refs https://github.com/mitmproxy/mitmproxy/pull/2484#pullrequestreview-53101507 |
||
---|---|---|
.. | ||
addons | ||
contentviews | ||
contrib | ||
io | ||
net | ||
platform | ||
proxy | ||
script | ||
test | ||
tools | ||
types | ||
utils | ||
__init__.py | ||
addonmanager.py | ||
certs.py | ||
command.py | ||
connections.py | ||
controller.py | ||
ctx.py | ||
eventsequence.py | ||
exceptions.py | ||
flow.py | ||
flowfilter.py | ||
http.py | ||
log.py | ||
master.py | ||
options.py | ||
optmanager.py | ||
stateobject.py | ||
tcp.py | ||
version.py | ||
websocket.py |