lib/httpx/connection/http1.rb in httpx-0.22.5 vs lib/httpx/connection/http1.rb in httpx-0.23.0

- old
+ new

@@ -104,10 +104,11 @@ log(level: 2) { "parsing begins" } end def on_headers(h) @request = @requests.first + return if @request.response log(level: 2) { "headers received" } headers = @request.options.headers_class.new(h) response = @request.options.response_class.new(@request, @@ -310,11 +311,11 @@ request.transition(:done) end end def join_headline(request) - "#{request.verb.to_s.upcase} #{request.path} HTTP/#{@version.join(".")}" + "#{request.verb} #{request.path} HTTP/#{@version.join(".")}" end def join_headers(request) headline = join_headline(request) @buffer << headline << CRLF @@ -365,7 +366,6 @@ def capitalized(field) UPCASED[field] || field.split("-").map(&:capitalize).join("-") end end - Connection.register "http/1.1", Connection::HTTP1 end