I was running a version 2.8.x without any trouble except that the forgot 
email feature was not working. I upgraded to 2.9.12 and my index page is 
being rendered as text (the source is being displayed on the browser). The 
content-type is showing up as json instead of html. I made NO changes to 
the application in months. After manually setting 

response.headers['Content-Type'] = 'text/html'

in the index controller, the page renders correctly as HTML. But an ajax 
response that was returning JSON is failing on both Chrome and Firefox. 
Firefox shows a this error message:

SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the 
JSON data

Upon further investigation, it appears that the return is now actually JSON 
and it wasn't earlier, the content-type is JSON now. Something's changed 
with the content-type and is breaking previously working applications.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to