mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user