mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 11:15:27 -07:00
fix: FastCGIUtils.outputHTML should do UTF8 encoding
This commit is contained in:
1 parent
d78aaf18da
commit
c033bbccff
1 file changed
+1
-1
@@ -177,7 +177,7 @@ outputPNG x = do
|
|||||||
outputHTML :: String -> CGI CGIResult
|
outputHTML :: String -> CGI CGIResult
|
||||||
outputHTML x = do
|
outputHTML x = do
|
||||||
setHeader "Content-Type" "text/html"
|
setHeader "Content-Type" "text/html"
|
||||||
outputStrict x
|
outputStrict $ UTF8.encodeString x
|
||||||
|
|
||||||
outputStrict :: String -> CGI CGIResult
|
outputStrict :: String -> CGI CGIResult
|
||||||
outputStrict x | x == x = output x
|
outputStrict x | x == x = output x
|
||||||
|
|||||||
Reference in new issue
Block a user