jsonp: Ensure jsonp responds with application/javascript.

This commit is contained in:
Andre D
2013-06-10 09:11:20 -07:00
committed by Max Goodman
parent ccea2e6588
commit ff46a47e3d

View File

@@ -433,6 +433,7 @@ def set_content_type():
c.allowed_callback = callback
c.user = UnloggedUser(get_browser_langs())
c.user_is_loggedin = False
response.content_type = "application/javascript"
def get_browser_langs():
browser_langs = []