shredded FastCGI and CGI support, as they are incompatible with WebSocket 😢

This commit is contained in:
Dennis Frieberg 2021-04-03 02:20:00 +02:00
parent 49f3b092be
commit cf946f960c
9 changed files with 20 additions and 113 deletions

View file

@ -1,3 +1,9 @@
{-# LANGUAGE CPP #-}
#ifndef HTTPS_SUPPORT
module Backend.Https
where
#else
{-# LANGUAGE OverloadedStrings #-}
module Backend.Https (forkHttpsBackend, httpsDefaultSettings) where
@ -74,3 +80,4 @@ httpsToWarpConfig = httpToWarpConfig . fst
backend :: Wai.Application -> HttpsConfiguration -> IO ()
backend app conf = HTTPS.runTLS (httpsToWarpTLSConfig conf) (httpsToWarpConfig conf) app
#endif