Skip to content
Snippets Groups Projects
Verified Commit b7098b2f authored by jan.hamal.dvorak's avatar jan.hamal.dvorak
Browse files

Use Text for the basic setCookie function

parent d9d6ac36
No related branches found
No related tags found
No related merge requests found
......@@ -812,10 +812,10 @@ where
-- Do not use cookies set in this way for anything else than storing
-- simple user preferences.
--
setCookie :: (MonadAction m) => ByteString -> ByteString -> m ()
setCookie :: (MonadAction m) => Text -> Text -> m ()
setCookie name value = do
setCookieEx $ defaultSetCookie { setCookieName = name
, setCookieValue = value
setCookieEx $ defaultSetCookie { setCookieName = cs name
, setCookieValue = cs value
, setCookiePath = Just "/"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment