From b424c1d43fd5ae8d103cdc64ba36d3a014093903 Mon Sep 17 00:00:00 2001 From: Ryan Welton Date: Tue, 9 Jun 2015 12:28:37 -0400 Subject: [PATCH] Switch to single quotes --- libmproxy/console/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index f28db013f..90c10b8f2 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -283,7 +283,7 @@ def copy_as_curl_command(flow): headerString = "" for k,v in flow.request.headers: - headerString += " -H \"" + k + ":" + v + "\" " + headerString += " -H '" + k + ":" + v + "' " data = "curl" @@ -291,7 +291,7 @@ def copy_as_curl_command(flow): data += " -X " + flow.request.method full_url = flow.request.scheme + "://" + flow.request.host + flow.request.path - data += headerString + " \"" + full_url + "\"" + data += " " + headerString + "'" + full_url + "'" if flow.request.content != None and flow.request.content != "": data += " --data-binary " + "'" + flow.request.content + "'"