diff options
| author | hallgren <hallgren@chalmers.se> | 2010-12-22 14:47:35 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2010-12-22 14:47:35 +0000 |
| commit | 505d99ec3749fc30c1e2362140b49beb166be7ab (patch) | |
| tree | a7cd1bbcac55e5455525eedc0ebaa129fbb4eada /src/server/FastCGIUtils.hs | |
| parent | c5b963769539c8a7c9bd154585686d263c7d6d8a (diff) | |
PGF web service: Use Content-Type text/javascript from JSON output
The Content-Type used to be text/json, but this caused warning messages in
some web browers.
Diffstat (limited to 'src/server/FastCGIUtils.hs')
| -rw-r--r-- | src/server/FastCGIUtils.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/FastCGIUtils.hs b/src/server/FastCGIUtils.hs index 0bae305c5..f9e575df7 100644 --- a/src/server/FastCGIUtils.hs +++ b/src/server/FastCGIUtils.hs @@ -165,7 +165,7 @@ outputJSONP x = let str = case mc of Nothing -> encode x Just c -> c ++ "(" ++ encode x ++ ")" - setHeader "Content-Type" "text/json; charset=utf-8" + setHeader "Content-Type" "text/javascript; charset=utf-8" outputStrict $ UTF8.encodeString str outputPNG :: BS.ByteString -> CGI CGIResult |
