]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Resource/Object.hs
Bugfix regarding with URI escaping
[Rakka.git] / Rakka / Resource / Object.hs
index 5f5b5c51625c97c6e7524ec8336ca05f379c0432..d4db7db60e8c894ac77e4bf142411c7e76fa3996 100644 (file)
@@ -4,12 +4,13 @@ module Rakka.Resource.Object
     )
     where
 
+import qualified Codec.Binary.UTF8.String as UTF8
 import           Network.HTTP.Lucu
-import           Network.HTTP.Lucu.Utils
 import           Rakka.Environment
 import           Rakka.Page
 import           Rakka.Storage
 import           Rakka.SystemConfig
+import           System.FilePath.Posix
 
 
 resObject :: Environment -> ResourceDef
@@ -25,7 +26,7 @@ resObject env
       }
     where
       toPageName :: [String] -> PageName
-      toPageName = decodePageName . joinWith "/" 
+      toPageName = UTF8.decodeString . joinPath
 
 
 handleGet :: Environment -> PageName -> Resource ()