@@ -87,13 +87,13 @@ hpackDecodeHeader hdrblk Context{..} = do
8787{-# INLINE checkRequestHeader #-}
8888checkRequestHeader :: ValueTable -> Bool
8989checkRequestHeader reqvt
90− | just mMethod (== "CONNECT") = mPath == Nothing && mScheme == Nothing
91− | mStatus /= Nothing = False
92− | mMethod == Nothing = False
93− | mScheme == Nothing = False
94− | mPath == Nothing = False
90+ | just mMethod (== "CONNECT") = isNothing mPath && isNothing mScheme
91+ | isJust mStatus = False
92+ | isNothing mMethod = False
93+ | isNothing mScheme = False
94+ | isNothing mPath = False
9595 | mPath == Just "" = False
96− | mConnection /= Nothing = False
96+ | isJust mConnection = False
9797 | just mTE (/= "trailers") = False
9898 | otherwise = True
9999 where