diff options
-rw-r--r-- | mitmproxy/addons/export.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mitmproxy/addons/export.py b/mitmproxy/addons/export.py index 04c0349a..a7152ae4 100644 --- a/mitmproxy/addons/export.py +++ b/mitmproxy/addons/export.py @@ -34,10 +34,7 @@ def curl_command(f: flow.Flow) -> str: # shlex.quote doesn't support a bytes object # see https://github.com/python/cpython/pull/10871 raise exceptions.CommandError("Request content must be valid unicode") - args += [ - "--data-binary", - strutils.always_str(request.content) - ] + args += ["--data-binary", content] return ' '.join(shlex.quote(arg) for arg in args) |