codekingpro/portable-devtools
114k
1from mitmproxy import ctx2 3 4class AntiComp:5 def load(self, loader):6 loader.add_option(7 "anticomp",8 bool,9 False,10 "Try to convince servers to send us un-compressed data.",11 )12 13 def request(self, flow):14 if ctx.options.anticomp:15 flow.request.anticomp()16 