mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Exception#http_body works even when no response. Fixes #33
This commit is contained in:
parent
df78724fc0
commit
6f359db667
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ module RestClient
|
|||
end
|
||||
|
||||
def http_body
|
||||
@response.body
|
||||
@response.body if @response
|
||||
end
|
||||
|
||||
def inspect
|
||||
|
|
Loading…
Reference in a new issue