1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Fix logging

This commit is contained in:
Julien Kirch 2010-01-21 19:32:01 +01:00
parent 143b035aea
commit b83986cec4

View file

@ -156,6 +156,7 @@ module RestClient
net.start do |http| net.start do |http|
res = http.request(req, payload) { |http_response| fetch_body(http_response) } res = http.request(req, payload) { |http_response| fetch_body(http_response) }
log_response res
process_result(res) process_result(res)
end end
rescue EOFError rescue EOFError
@ -203,7 +204,6 @@ module RestClient
else else
response = Response.new(Request.decode(res['content-encoding'], res.body), res) response = Response.new(Request.decode(res['content-encoding'], res.body), res)
end end
log_response response
code = res.code.to_i code = res.code.to_i