Skip to content

Commit 2363472

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

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-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

releases.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Releases
22

3+
## Unreleased
4+
5+
- Minor consistency fixes to `Async::HTTP::Internet` singleton methods.
6+
37
## v0.82.0
48

59
- `protocol-http1` introduces a line length limit for request line, response line, header lines and chunk length lines.

0 commit comments

Comments
 (0)