mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 08:48:18 -05:00
jsonp: Ensure jsonp responds with application/javascript.
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user