mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +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 |
||
---|---|---|
.. | ||
examples | ||
helper_tools | ||
mitmproxy | ||
pathod | ||
__init__.py | ||
conftest.py | ||
filename_matching.py | ||
full_coverage_plugin.py | ||
individual_coverage.py |