include response headers in rkcurl responses.

This commit is contained in:
Jeremy Ellison
2011-01-20 11:55:40 -05:00
parent 89b2833705
commit 3474eb73b0

View File

@@ -35,7 +35,7 @@ data = nil
dataMatch = input.match(/HTTP Body: (.*)\n/m)
data = dataMatch[1] if dataMatch
command = "curl -X #{method} "
command = "curl -i -X #{method} "
command << "-d \"#{data.gsub('"', '\"')}\" " if data
for header in headers
command << "-H \"#{header.gsub('"', '\"')}\" "