mitmproxy/examples/addons/http-modify-query-string.py

8 lines
154 B
Python

"""Modify HTTP query parameters."""
from mitmproxy import http
def request(flow: http.HTTPFlow) -> None:
flow.request.query["mitmproxy"] = "rocks"