wai-app-file-cgi 0.5.4 → 0.5.5
raw patch · 2 files changed
+6/−10 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
Network/Wai/Application/Classic/RevProxy.hs view
@@ -4,11 +4,10 @@ import Control.Applicative import Control.Exception (SomeException)-import Control.Exception.Lifted (catch, throwIO)+import Control.Exception.Lifted (catch) import Control.Monad.IO.Class (liftIO) import qualified Data.ByteString.Char8 as BS import Data.Conduit-import Data.Conduit.List (sourceNull) import Data.Int import Data.Maybe import qualified Network.HTTP.Conduit as H@@ -33,6 +32,7 @@ , H.proxy = Nothing , H.rawBody = False , H.decompress = H.alwaysDecompress+ , H.checkStatus = \_ _ -> Nothing } where path = fromByteString $ rawPathInfo req@@ -80,11 +80,7 @@ type Resp = ResourceT IO (H.Response (Source IO BS.ByteString)) http :: H.Request IO -> H.Manager -> Resp-http req mgr = H.http req mgr `catch` notSuccess--notSuccess :: H.HttpException -> Resp-notSuccess (H.StatusCodeException st hdr) = return $ H.Response st hdr sourceNull-notSuccess e = throwIO e+http req mgr = H.http req mgr badGateway :: ClassicAppSpec -> Request-> SomeException -> ResourceT IO Response badGateway cspec req _ = do
wai-app-file-cgi.cabal view
@@ -1,12 +1,12 @@ Name: wai-app-file-cgi-Version: 0.5.4+Version: 0.5.5 Author: Kazu Yamamoto <kazu@iij.ad.jp> Maintainer: Kazu Yamamoto <kazu@iij.ad.jp> License: BSD3 License-File: LICENSE Synopsis: File/CGI/Rev Proxy App of WAI-Description: This WAI application handles static files,- executes CGI scripts, and reverse proxy.+Description: This WAI application library handles static files,+ executes CGI scripts, and serves as a reverse proxy. Homepage: http://www.mew.org/~kazu/proj/mighttpd/ Category: Web, Yesod Cabal-Version: >= 1.8