Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index 1bf1d10..3716dee 100644
- --- a/lib/rest_client.rb
- +++ b/lib/rest_client.rb
- @@ -228,7 +228,7 @@ module RestClient
- end
- def response_log(res)
- - "# => #{res.code} #{res.class.to_s.gsub(/^Net::HTTP/, '')} | #{(res['Content-type'] || '').gsub(/;.*$/, '')} #{res.body.size} bytes"
- + "# => #{res.code} #{res.class.to_s.gsub(/^Net::HTTP/, '')} | #{(res['Content-type'] || '').gsub(/;.*$/, '')} #{res.body ? res.body.size : 0} bytes"
- end
- def display_log(msg)
Add Comment
Please, Sign In to add comment