aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plum/stream.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-07-25 19:05:08 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-07-25 19:05:08 +0900
commitb9051c6b87a651310373ea96bf90c2a24566bdad (patch)
treeac614245a5b1d434691259c5a651cf4b21ad98b4 /lib/plum/stream.rb
parentf0ec1df8778c7f4243241082536b42b5e38b7a60 (diff)
downloadplum-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.rb6
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