]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Resource.hs
implemented language link editor (partly)
[Rakka.git] / Rakka / Resource.hs
index 963101ff1f5220b0f562ce61a0c05b5268c62739..5cbf188e46c8a468b16b5bdbfcbd5f1722f8d7c6 100644 (file)
@@ -8,6 +8,7 @@ module Rakka.Resource
     )
     where
 
+import qualified Codec.Binary.UTF8.String as UTF8
 import           Control.Arrow
 import           Control.Arrow.ArrowList
 import           Control.Monad
@@ -113,7 +114,7 @@ getInputReader
                return $ readString [ (a_validate         , v_0)
                                    , (a_check_namespaces , v_1)
                                    , (a_remove_whitespace, v_0)
-                                   ] req
+                                   ] (UTF8.decodeString req)
       getFailingReader code headers msg
           = return $ proc _ -> abortA -< (code, (headers, msg))
 
@@ -128,7 +129,7 @@ getEntityType
     where
       extMap :: [(String, MIMEType)]
       extMap = [ ("html", read "application/xhtml+xml")
-               , ( "rdf", read "application/rdf+xml"  )
+               , ( "rdf", read "application/rss+xml"  )
                , ( "xml", read "text/xml"             )
                ]