mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 19:27:14 +00:00
improve HTTPRequest syntax
This commit is contained in:
parent
cd43c5ba9c
commit
2f44b26b4c
14 changed files with 152 additions and 188 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
def request(context, flow):
|
||||
q = flow.request.get_query()
|
||||
q = flow.request.query
|
||||
if q:
|
||||
q["mitmproxy"] = ["rocks"]
|
||||
flow.request.set_query(q)
|
||||
flow.request.query = q
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue