From 8747cad2bfef3ace6c306a0199ee05c8c1a74ae8 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sun, 24 Nov 2024 19:55:10 +1300 Subject: [PATCH] Pass through *arguments and **options for consistency. --- lib/async/http/internet/instance.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/async/http/internet/instance.rb b/lib/async/http/internet/instance.rb index 92a60c0..bdbcfc8 100644 --- a/lib/async/http/internet/instance.rb +++ b/lib/async/http/internet/instance.rb @@ -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