Skip to content

Commit 8747cad

Browse files
committed
Pass through *arguments and **options for consistency.
1 parent 08878c4 commit 8747cad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/async/http/internet/instance.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def self.instance
1717

1818
class << self
1919
::Protocol::HTTP::Methods.each do |name, verb|
20-
define_method(verb.downcase) do |url, headers = nil, body = nil, &block|
21-
self.instance.call(verb, url, headers, body, &block)
20+
define_method(verb.downcase) do |url, *arguments, **options, &block|
21+
self.instance.call(verb, url, *arguments, **options, &block)
2222
end
2323
end
2424
end

0 commit comments

Comments
 (0)