2025-12-25 upload
This commit is contained in:
15
venv/Lib/site-packages/mitmproxy/addons/anticomp.py
Normal file
15
venv/Lib/site-packages/mitmproxy/addons/anticomp.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from mitmproxy import ctx
|
||||
|
||||
|
||||
class AntiComp:
|
||||
def load(self, loader):
|
||||
loader.add_option(
|
||||
"anticomp",
|
||||
bool,
|
||||
False,
|
||||
"Try to convince servers to send us un-compressed data.",
|
||||
)
|
||||
|
||||
def request(self, flow):
|
||||
if ctx.options.anticomp:
|
||||
flow.request.anticomp()
|
||||
Reference in New Issue
Block a user