What headers are set?
In my app to return json I do this:

web.header("Content-Type", "application/json")
return json.dumps(result)


On Aug 18, 1:03 am, Matt Wright <[email protected]> wrote:
> This is quite strange, but I came back to my app this morning after working
> on it last night, and the JSON responses on my API end points are suddenly
> being downloaded by the browser (Chrome, FireFox, Safari) instead of getting
> rendered as text. Is there a common mistake I may have made?

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to