lib/httpx/connection/http2.rb in httpx-0.10.2 vs lib/httpx/connection/http2.rb in httpx-0.11.0
- old
+ new
@@ -161,16 +161,16 @@
alias_method :reset, :init_connection
public :reset
def handle_stream(stream, request)
- stream.on(:close, &method(:on_stream_close).curry[stream, request])
+ stream.on(:close, &method(:on_stream_close).curry(3)[stream, request])
stream.on(:half_close) do
log(level: 2) { "#{stream.id}: waiting for response..." }
end
- stream.on(:altsvc, &method(:on_altsvc).curry[request.origin])
- stream.on(:headers, &method(:on_stream_headers).curry[stream, request])
- stream.on(:data, &method(:on_stream_data).curry[stream, request])
+ stream.on(:altsvc, &method(:on_altsvc).curry(2)[request.origin])
+ stream.on(:headers, &method(:on_stream_headers).curry(3)[stream, request])
+ stream.on(:data, &method(:on_stream_data).curry(3)[stream, request])
end
def join_headers(stream, request)
set_request_headers(request)
headers = {}