X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Rakka%2FStorage%2FRepos.hs;h=756740eb842540f30df5a47c26651cf07c4f28ff;hp=8664d2480d5b62252b5930e43dbee309a21fe204;hb=706ee842873fdceb9465cdf6a583176ab855fae2;hpb=a4b849476ee3a204ea91dee8f3fd235b0b33a10a diff --git a/Rakka/Storage/Repos.hs b/Rakka/Storage/Repos.hs index 8664d24..756740e 100644 --- a/Rakka/Storage/Repos.hs +++ b/Rakka/Storage/Repos.hs @@ -1,3 +1,4 @@ +-- -*- coding: utf-8 -*- module Rakka.Storage.Repos ( findAllPagesInRevision , getDirContentsInRevision @@ -447,7 +448,7 @@ putAttachmentIntoRepository repos userID oldRev pName aName attachment unless exists $ do createParentDirectories path makeFile path - applyText path Nothing (serializeToString attachment) + applyText path Nothing (encodeString $ serializeToString attachment) case ret of Left _ -> return Conflict Right _ -> return NoContent