mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
65f0885bd6
While we're here, expand test coverage for addonmanager to 100%, and promote to individual coverage.
8 lines
149 B
Python
8 lines
149 B
Python
class AddHeader:
|
|
def response(self, flow):
|
|
flow.response.headers["newheader"] = "foo"
|
|
|
|
|
|
def load(l):
|
|
return l.boot_into(AddHeader())
|