lib/httpx/channel/http2.rb in httpx-0.0.2 vs lib/httpx/channel/http2.rb in httpx-0.0.3
- old
+ new
@@ -149,10 +149,10 @@
request.response << data
end
def on_stream_close(stream, request, error)
return handle(request, stream) if request.expects?
- response = request.response || ErrorResponse.new(error, @retries)
+ response = request.response || ErrorResponse.new(Error.new(error), @retries, @options)
emit(:response, request, response)
log(2, "#{stream.id}: ") { "closing stream" }
@streams.delete(request)
send(@pending.shift) unless @pending.empty?