diff --git a/warp/Network/Wai/Handler/Warp/HTTP2.hs b/warp/Network/Wai/Handler/Warp/HTTP2.hs index 4e6d93a7e..7276ea8e7 100644 --- a/warp/Network/Wai/Handler/Warp/HTTP2.hs +++ b/warp/Network/Wai/Handler/Warp/HTTP2.hs @@ -59,7 +59,7 @@ http2 settings ii conn transport app peersa th bs = do } checkTLS setConnHTTP2 conn True - H2.run conf $ http2server settings ii transport peersa app + H2.run H2.defaultServerConfig conf $ http2server settings ii transport peersa app where checkTLS = case transport of TCP -> return () -- direct diff --git a/warp/warp.cabal b/warp/warp.cabal index 941417380..aab8d23ab 100644 --- a/warp/warp.cabal +++ b/warp/warp.cabal @@ -48,7 +48,7 @@ Library , hashable , http-date , http-types >= 0.12 - , http2 >= 3.0 && < 5 + , http2 >= 5.0 && < 5.1 , iproute >= 1.3.1 , recv >= 0.1.0 && < 0.2.0 , simple-sendfile >= 0.2.7 && < 0.3 @@ -201,7 +201,7 @@ Test-Suite spec , http-client , http-date , http-types >= 0.12 - , http2 >= 3.0 && < 5 + , http2 >= 5.0 && < 5.1 , iproute >= 1.3.1 , network , process