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