I Updated to MITMProxy Version 5.2. After updating I tried to run an Older Script and Kept Getting the Error:
AttributeError: 'HTTPResponse' object has no attribute 'replace'
From my code:
flow.response.replace('FindThis', 'ReplaceWithThis')
I read that they Change Replace, but couldn't find any documents that were CLEAR on what they changed it to or the correct Syntax in a Script.
I read ModifyBody
was a replacement, but when I changed my script from replace
to ModifyBody
, I would then get the error:
AttributeError: 'HTTPResponse' object has no attribute 'ModifyBody'
So I assume it is not correct or I need to load a module? And i would like to know if there is a new or same Syntax.
Thanks