Switch to single quotes

This commit is contained in:
Ryan Welton 2015-06-09 12:28:37 -04:00 committed by Shadab Zafar
parent dde0ff50a5
commit b424c1d43f

View File

@ -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 + "'"