Guest User

Untitled

a guest
Jan 21st, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # Modify HTTP.py
  2.  
  3. class ModifyHttp:
  4. def done(self):
  5. # addon unloaded, close global resources (e.g. open files) here
  6. pass
  7.  
  8. def response(self, flow):
  9. if flow.request.pretty_url == "https://mobile.kanga.exchange/api/info":
  10. flow.response.content = flow.response.content.replace(
  11. b"1.20.17",
  12. b"1.12.7")
  13.  
  14. print("HTTP response modified")
  15.  
  16. addons = [ModifyHttp()]
Advertisement
Add Comment
Please, Sign In to add comment