diff --git a/examples/har_dump.py b/examples/har_dump.py index 4ab6b5a96..803a3249e 100644 --- a/examples/har_dump.py +++ b/examples/har_dump.py @@ -135,7 +135,7 @@ def response(flow): else: entry["response"]["content"]["text"] = flow.response.content - if flow.request.method == "POST": + if flow.request.method in ["POST", "PUT", "PATCH"]: entry["request"]["postData"] = { "mimeType": flow.request.headers.get("Content-Type", "").split(";")[0], "text": flow.request.content,