Skip to content

Commit

Permalink
Merge 623304b into 19d45c8
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeu2000 committed Nov 23, 2016
2 parents 19d45c8 + 623304b commit dd185b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/http/2/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ def receive(data)
else
case frame[:type]
when :headers
# When server receives even-numbered stream identifier,
# the endpoint MUST respond with a connection error of type PROTOCOL_ERROR.
connection_error if frame[:stream].even? && self.is_a?(Server)

# The last frame in a sequence of HEADERS/CONTINUATION
# frames MUST have the END_HEADERS flag set.
unless frame[:flags].include? :end_headers
Expand Down

0 comments on commit dd185b1

Please sign in to comment.