Skip to content

Commit

Permalink
Pass through *arguments and **options for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 24, 2024
1 parent 08878c4 commit 8747cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/async/http/internet/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def self.instance

class << self
::Protocol::HTTP::Methods.each do |name, verb|
define_method(verb.downcase) do |url, headers = nil, body = nil, &block|
self.instance.call(verb, url, headers, body, &block)
define_method(verb.downcase) do |url, *arguments, **options, &block|
self.instance.call(verb, url, *arguments, **options, &block)
end
end
end
Expand Down

0 comments on commit 8747cad

Please sign in to comment.