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 diff --git a/releases.md b/releases.md index cf5c1b8..14a6e18 100644 --- a/releases.md +++ b/releases.md @@ -1,5 +1,9 @@ # Releases +## Unreleased + + - Minor consistency fixes to `Async::HTTP::Internet` singleton methods. + ## v0.82.0 - `protocol-http1` introduces a line length limit for request line, response line, header lines and chunk length lines.