X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/dcacc3b4c2ba2f550806a2d22b183f6fac4f63ff..577d5301bc90f71afdcd82ca62bd711351dbfa73:/forum_modules/akismet/startup.py diff --git a/forum_modules/akismet/startup.py b/forum_modules/akismet/startup.py index 2387e05..7600bee 100644 --- a/forum_modules/akismet/startup.py +++ b/forum_modules/akismet/startup.py @@ -1,5 +1,4 @@ import json -import loggin from django.utils.translation import ugettext as _ from django.http import HttpResponse, HttpResponseRedirect @@ -52,7 +51,7 @@ def check_spam(param, comment_type): 'success': False, 'error_message': _("Sorry, but akismet thinks your %s is spam.") % comment_type } - return HttpResponse(json.dumps(response), mimetype="application/json") + return HttpResponse(json.dumps(response), content_type="application/json") else: captcha_checked = False try: