From 79fd5fe3321d230cee8649922af5eefe35d68c18 Mon Sep 17 00:00:00 2001 From: cicavey Date: Thu, 3 Oct 2013 23:05:25 -0400 Subject: [PATCH] Changed MIME type of JSONP requests to text/javascript --- couchpotato/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/couchpotato/api.py b/couchpotato/api.py index 091de42..e86b127 100644 --- a/couchpotato/api.py +++ b/couchpotato/api.py @@ -110,6 +110,7 @@ class ApiHandler(RequestHandler): if jsonp_callback: self.write(str(jsonp_callback) + '(' + json.dumps(result) + ')') + self.set_header("Content-Type", "text/javascript") elif isinstance(result, tuple) and result[0] == 'redirect': self.redirect(result[1]) else: