passing the 5.1 test case of h2spec.
commiteab3d04138cd02b157469f28f208184dcde72bb6
authorKazu Yamamoto <kazu@iij.ad.jp>
dateWed 29 Jul 2015, 16:16 (11 years ago)
parent4415eb2
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+1−1
@@ -142,7 +142,7 @@ frameReceiver ctx mkreq recvN = loop `E.catch` sendGoaway
142142 Just strm0 -> do
143143 when (ftyp == FrameHeaders) $ do
144144 st <- readIORef $ streamState strm0
145− when (isHalfClosed st) $ E.throwIO $ ConnectionError ProtocolError "header must not be sent to half closed"
145+ when (isHalfClosed st) $ E.throwIO $ ConnectionError StreamClosed "header must not be sent to half closed"
146146 return strm0
147147 Nothing -> do
148148 when (ftyp `notElem` [FrameHeaders,FramePriority]) $