IE9 fixes

This commit is contained in:
Ruud
2012-05-26 11:01:55 +02:00
parent 2c3e53eb1f
commit 98c8a47dd0
4 changed files with 18 additions and 8 deletions
+8 -3
View File
@@ -1,7 +1,7 @@
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import natcmp
from flask.globals import current_app
from flask.helpers import json
from flask.helpers import json, make_response
from libs.werkzeug.urls import url_decode
from urllib import unquote
import flask
@@ -72,6 +72,11 @@ def jsonify(mimetype, *args, **kwargs):
def jsonified(*args, **kwargs):
callback = getParam('callback_func', None)
if callback:
return padded_jsonify(callback, *args, **kwargs)
content = padded_jsonify(callback, *args, **kwargs)
else:
return jsonify('application/json', *args, **kwargs)
content = jsonify('application/json', *args, **kwargs)
response = make_response(content)
response.cache_control.no_cache = True
return response