mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 10:47:14 +00:00
9 lines
292 B
Python
9 lines
292 B
Python
"""
|
|
This script reflects all content passing through the proxy.
|
|
"""
|
|
from mitmproxy import http
|
|
|
|
|
|
def response(flow: http.HTTPFlow) -> None:
|
|
reflector = b"<style>body {transform: scaleX(-1);}</style></head>"
|
|
flow.response.content = flow.response.content.replace(b"</head>", reflector)
|