Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Modify HTTP.py
- class ModifyHttp:
- def done(self):
- # addon unloaded, close global resources (e.g. open files) here
- pass
- def response(self, flow):
- if flow.request.pretty_url == "https://mobile.kanga.exchange/api/info":
- flow.response.content = flow.response.content.replace(
- b"1.20.17",
- b"1.12.7")
- print("HTTP response modified")
- addons = [ModifyHttp()]
Advertisement
Add Comment
Please, Sign In to add comment