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:
parent
bce9ed458a
commit
095a7f18df
3 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue