lib/async/http/protocol/http2/promise.rb in async-http-0.40.3 vs lib/async/http/protocol/http2/promise.rb in async-http-0.41.0
- old
+ new
@@ -33,11 +33,11 @@
attr :stream
attr :request
private def build_request(headers)
- request = HTTP::Request.new
- request.headers = Headers.new
+ request = ::Protocol::HTTP::Request.new
+ request.headers = ::Protocol::HTTP::Headers.new
headers.each do |key, value|
if key == SCHEME
return @stream.send_failure(400, "Request scheme already specified") if request.scheme