IE9 fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user