diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-07-25 19:05:08 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-07-25 19:05:08 +0900 |
commit | b9051c6b87a651310373ea96bf90c2a24566bdad (patch) | |
tree | ac614245a5b1d434691259c5a651cf4b21ad98b4 /lib/plum/stream.rb | |
parent | f0ec1df8778c7f4243241082536b42b5e38b7a60 (diff) | |
download | plum-b9051c6b87a651310373ea96bf90c2a24566bdad.tar.gz |
stream: stream state must be open immediately after first HEADERS
Diffstat (limited to 'lib/plum/stream.rb')
-rw-r--r-- | lib/plum/stream.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plum/stream.rb b/lib/plum/stream.rb index a1e1412..42c8536 100644 --- a/lib/plum/stream.rb +++ b/lib/plum/stream.rb @@ -179,9 +179,6 @@ module Plum end def process_complete_headers(frames) - callback(:open) - @state = :open - frames = frames.dup first = frames.shift payload = extract_padded(first) @@ -202,6 +199,9 @@ module Plum end def process_headers(frame) + callback(:open) + @state = :open + if frame.flags.include?(:end_headers) process_complete_headers([frame]) else |