salvia 0.1 → 0.1.1
raw patch · 2 files changed
+14/−5 lines, 2 filesdep ~encoding
Dependency ranges changed: encoding
Files
- salvia.cabal +12/−3
- src/Network/Salvia/Core/IO.hs +2/−2
salvia.cabal view
@@ -1,6 +1,15 @@ Name: salvia-Version: 0.1-Description: Lightweight Haskell Web Server Framework+Version: 0.1.1+Description: Lightweight Haskell Web Server Framework with modular support+ for serving static files, directories indices, default error+ responses, connection counting and logging, HEAD and PUT+ requests, keep-alives, custom banner printing, default+ handler environments for parsing request and printing+ responses, dispatching based on request methods, URI, paths+ and filename extension, URI rewriting and redirection,+ virtual hosting, cookie, session and user management and+ more...+ Synopsis: Lightweight Haskell Web Server Framework Category: Network, Web License: BSD3@@ -15,7 +24,7 @@ directory, pureMD5 == 0.2.4, fclabels ==0.1,- encoding,+ encoding ==0.5.1, filepath, mtl ==1.1.0.2, network,
src/Network/Salvia/Core/IO.hs view
@@ -36,7 +36,7 @@ -- TODO: we are mixing two encoding libs. fix. import Control.Monad.State-import Data.Encoding (decodeLazy)+import Data.Encoding (decodeLazyByteString) import Data.Encoding.UTF8 import Data.Record.Label import Network.Protocol.Http@@ -149,7 +149,7 @@ -} contentsUtf8 :: Handler (Maybe String)-contentsUtf8 = (fmap $ decodeLazy UTF8) `liftM` contents+contentsUtf8 = (fmap $ decodeLazyByteString UTF8) `liftM` contents {- | Try to parse the supplied request body as URI encoded `POST` parameters in