mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +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()]
|