1
0
Fork 0
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:
Julien Kirch 2010-02-10 21:52:42 +01:00
parent 1b97ddeb74
commit 3e4eee9b43

View file

@ -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