]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Resource/Render.hs
Resurrection from slight bitrot.
[Rakka.git] / Rakka / Resource / Render.hs
index 3823cb4fa915f80be5b9c9c98e41a73f817fcadc..18a7dc59487dd646621324dc74f4e433894e424d 100644 (file)
@@ -8,7 +8,6 @@ import           Control.Arrow.ArrowIO
 import           Control.Arrow.ArrowList
 import           Control.Monad.Trans
 import qualified Data.ByteString.Lazy as Lazy
-import           Data.Maybe
 import           Network.HTTP.Lucu
 import           Network.HTTP.Lucu.Utils
 import           OpenSSL.EVP.Base64
@@ -82,7 +81,9 @@ handleRender env name
                                      >>>
                                      render env
                                      >>>
-                                     writeDocumentToString [ (a_indent, v_1) ]
+                                     writeDocumentToString [ (a_indent         , v_1)
+                                                           , (a_output_encoding, utf8)
+                                                           , (a_no_xml_pi      , v_0) ]
                                    )
          output xmlStr