Skip to content

Commit

Permalink
Respect default_options for HTTP::Chainable#request and
Browse files Browse the repository at this point in the history
HTTP::Chainable#build_request
  • Loading branch information
RickCSong committed Dec 27, 2018
1 parent 4bc1223 commit cd97441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/http/chainable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ def patch(uri, options = {}) # rubocop:disable Style/OptionHash
# @param uri
# @option options [Hash]
def request(verb, uri, options = {}) # rubocop:disable Style/OptionHash
branch(options).request verb, uri
branch(default_options.merge(options)).request verb, uri
end

# Prepare an HTTP request with the given verb
# @param verb
# @param uri
# @option options [Hash]
def build_request(verb, uri, options = {}) # rubocop:disable Style/OptionHash
branch(options).build_request verb, uri
branch(default_options.merge(options)).build_request verb, uri
end

# @overload timeout(options = {})
Expand Down

0 comments on commit cd97441

Please sign in to comment.