From 2363472dc62dda98a53587e3e0c4ababfa621bd0 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 ++-- releases.md | 4 ++++ 2 files changed, 6 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 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.