lib/httpx/plugins/h2c.rb in httpx-0.9.0 vs lib/httpx/plugins/h2c.rb in httpx-0.10.0
- old
+ new
@@ -71,10 +71,10 @@
handle_stream(stream, request)
@streams[request] = stream
# clean up data left behind in the buffer, if the server started
# sending frames
- data = response.to_s
+ data = response.read
@connection << data
end
end
module ConnectionMethods