Exception#http_body works even when no response. Fixes #33

This commit is contained in:
Julien Kirch 2010-06-26 11:02:23 +02:00
parent df78724fc0
commit 6f359db667
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
- multipart parameters names should not be escaped
- remove the cookie escaping introduced by migrating to CGI cookie parsing in 1.5.1
- add a streamed payload type (patch provided by Caleb Land)
- Exception#http_body works even when no response
# 1.5.1

View File

@ -95,7 +95,7 @@ module RestClient
end
def http_body
@response.body
@response.body if @response
end
def inspect