lib/async/http/protocol/http2/stream.rb in async-http-0.72.0 vs lib/async/http/protocol/http2/stream.rb in async-http-0.73.0
- old
+ new
@@ -49,13 +49,12 @@
add_header(key, value)
end
end
def process_headers(frame)
- if frame.end_stream? && @headers
+ if @headers and frame.end_stream?
self.receive_trailing_headers(super, frame.end_stream?)
else
- @headers ||= ::Protocol::HTTP::Headers.new
self.receive_initial_headers(super, frame.end_stream?)
end
# TODO this might need to be in an ensure block:
if @input and frame.end_stream?