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
|
- multipart parameters names should not be escaped
|
||||||
- remove the cookie escaping introduced by migrating to CGI cookie parsing in 1.5.1
|
- 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)
|
- add a streamed payload type (patch provided by Caleb Land)
|
||||||
|
- Exception#http_body works even when no response
|
||||||
|
|
||||||
# 1.5.1
|
# 1.5.1
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ module RestClient
|
||||||
end
|
end
|
||||||
|
|
||||||
def http_body
|
def http_body
|
||||||
@response.body
|
@response.body if @response
|
||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
|
|
Loading…
Add table
Reference in a new issue