Modifying HTTPS response body not working

Thanks for replying, That’s correct that I have used the same response callback and same code you mentioned here but still same issue persists. I think I should try the latest version of mitmproxy and see if that works.