mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Fixed README
This commit is contained in:
parent
1b97ddeb74
commit
3e4eee9b43
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ Response.return! can be called to invoke the default response's behavior.
|
|||
# Follow redirections for all request types and not only for get and head
|
||||
RestClient.get('http://my-rest-service.com/resource'){ |response, &block|
|
||||
if [301, 303].include? code
|
||||
follow_redirection
|
||||
follow_redirection &block
|
||||
else
|
||||
response.return! &block
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue