mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-12 22:51:50 +08:00
include response headers in rkcurl responses.
This commit is contained in:
@@ -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('"', '\"')}\" "
|
||||
|
||||
Reference in New Issue
Block a user