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): ...@@ -204,7 +204,7 @@ class JsonResponse(HttpResponse):
def __init__(self, data=None): def __init__(self, data=None):
content = simplejson.dumps(data) content = simplejson.dumps(data)
super(JsonResponse, self).__init__(content, super(JsonResponse, self).__init__(content,
mimetype='application/json; charset=utf8') mimetype='application/json; charset=utf-8')
class JsonError(HttpResponse): class JsonError(HttpResponse):
def __init__(self, error_messages=[], status=400): def __init__(self, error_messages=[], status=400):
...@@ -214,7 +214,7 @@ class JsonError(HttpResponse): ...@@ -214,7 +214,7 @@ class JsonError(HttpResponse):
indent=2, indent=2,
ensure_ascii=False) ensure_ascii=False)
super(JsonError, self).__init__(content, super(JsonError, self).__init__(content,
mimetype='application/json; charset=utf8', status=status) mimetype='application/json; charset=utf-8', status=status)
class HtmlResponse(HttpResponse): class HtmlResponse(HttpResponse):
def __init__(self, html=''): 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