diff options
Diffstat (limited to 'askbot/views/readers.py')
-rw-r--r-- | askbot/views/readers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/views/readers.py b/askbot/views/readers.py index 3c3b053c..80f1d2ec 100644 --- a/askbot/views/readers.py +++ b/askbot/views/readers.py @@ -298,7 +298,7 @@ def get_top_answers(request): 'html': answers_html, 'num_answers': paginator.count} ) - return HttpResponse(json_string, mimetype='application/json') + return HttpResponse(json_string, content_type='application/json') else: return HttpResponseBadRequest() @@ -374,7 +374,7 @@ def tags(request):#view showing a listing of available tags - plain list template_context = RequestContext(request, data) json_data = {'success': True, 'html': template.render(template_context)} json_string = simplejson.dumps(json_data) - return HttpResponse(json_string, mimetype='application/json') + return HttpResponse(json_string, content_type='application/json') else: return render(request, 'tags.html', data) |