on master help sign in
fixing a bug of isHTTP2.
commit32cf83b146ffed58f298b3770803116a0010736b authorKazu Yamamoto <kazu@iij.ad.jp> dateFri 7 Jun 2019, 12:25 (7 years ago) parent1481ffb
1 file changed+1−1
warp/Network/Wai/Handler/Warp/HTTP2/Types.hs+1−1
warp/Network/Wai/Handler/Warp/HTTP2/Types.hs+1−1
@@ -33,7 +33,7 @@ isHTTP2 tls = useHTTP2
3333 where
3434 useHTTP2 = case tlsNegotiatedProtocol tls of
3535 Nothing -> False
36− Just proto -> "h2-" `BS.isPrefixOf` proto
36+ Just proto -> "h2" `BS.isPrefixOf` proto
3737
3838----------------------------------------------------------------
3939