1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

code style + history

This commit is contained in:
Julien Kirch 2010-12-18 18:15:04 +01:00
parent bce9ed458a
commit 095a7f18df
3 changed files with 5 additions and 1 deletions

View file

@ -7,6 +7,7 @@
- cookies set in a response should be kept in a redirect
- HEAD requests should process parameters just like GET (patch provided by Rob Eanes)
- Exception message should never be nil (patch provided by Michael Klett)
- Limit number of redirections (patch provided by Chris Dinn)
# 1.6.0

View file

@ -67,7 +67,9 @@ module RestClient
end
args[:url] = url
if request
raise MaxRedirectsReached if request.max_redirects == 0
if request.max_redirects == 0
raise MaxRedirectsReached
end
args[:password] = request.password
args[:user] = request.user
args[:headers] = request.headers

View file

@ -17,6 +17,7 @@ module RestClient
# * :cookies will replace possible cookies in the :headers
# * :user and :password for basic auth, will be replaced by a user/password available in the :url
# * :raw_response return a low-level RawResponse instead of a Response
# * :max_redirects maximum number of redirections (default to 10)
# * :verify_ssl enable ssl verification, possible values are constants from OpenSSL::SSL
# * :timeout and :open_timeout
# * :ssl_client_cert, :ssl_client_key, :ssl_ca_file