summaryrefslogtreecommitdiff
path: root/src/server/FastCGIUtils.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2009-11-29 14:51:12 +0000
committerkrasimir <krasimir@chalmers.se>2009-11-29 14:51:12 +0000
commit991a58badb2a97e839adc6ef852b13cc08e88f66 (patch)
tree012d9b03fe071d27183aef08532d110f0e3e8dd3 /src/server/FastCGIUtils.hs
parent2c54ad525ed08d2b7e828ffb72b64e81360d8d56 (diff)
TranslateApp now have browser for abstract syntax
Diffstat (limited to 'src/server/FastCGIUtils.hs')
-rw-r--r--src/server/FastCGIUtils.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/FastCGIUtils.hs b/src/server/FastCGIUtils.hs
index 603ca0db3..763eeb292 100644
--- a/src/server/FastCGIUtils.hs
+++ b/src/server/FastCGIUtils.hs
@@ -4,6 +4,7 @@ module FastCGIUtils (initFastCGI, loopFastCGI,
stderrToFile,
outputJSONP,
outputPNG,
+ outputHTML,
splitBy) where
import Control.Concurrent
@@ -170,6 +171,11 @@ outputPNG x = do
setHeader "Content-Type" "image/png"
outputStrict x
+outputHTML :: String -> CGI CGIResult
+outputHTML x = do
+ setHeader "Content-Type" "text/html"
+ outputStrict x
+
outputStrict :: String -> CGI CGIResult
outputStrict x | x == x = output x
| otherwise = fail "I am the pope."