mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
10 lines
175 B
Python
10 lines
175 B
Python
from mitmproxy import http
|
|
|
|
|
|
class AddHeader:
|
|
def response(self, flow: http.HTTPFlow) -> None:
|
|
flow.response.headers["newheader"] = "foo"
|
|
|
|
|
|
addons = [AddHeader()]
|