Commit d9946cc3 by arjun810

Merge pull request #757 from MITx/feature/ibrahim/fix-discussions-ie

Fix forums in IE9; apparently it's just very strict about the charset be...
parents 5e49871e ad7e84ad
......@@ -204,7 +204,7 @@ class JsonResponse(HttpResponse):
def __init__(self, data=None):
content = simplejson.dumps(data)
super(JsonResponse, self).__init__(content,
mimetype='application/json; charset=utf8')
mimetype='application/json; charset=utf-8')
class JsonError(HttpResponse):
def __init__(self, error_messages=[], status=400):
......@@ -214,7 +214,7 @@ class JsonError(HttpResponse):
indent=2,
ensure_ascii=False)
super(JsonError, self).__init__(content,
mimetype='application/json; charset=utf8', status=status)
mimetype='application/json; charset=utf-8', status=status)
class HtmlResponse(HttpResponse):
def __init__(self, html=''):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment