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

7 lines
153 B
Python

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