X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1157280cd8ff44da57a37dfc2f5920e53180f6b4..99d077e46d0eb3efd5e96a65f120e6e4b6197db0:/forum/views/meta.py?ds=sidebyside diff --git a/forum/views/meta.py b/forum/views/meta.py index e7d1515..513fd39 100644 --- a/forum/views/meta.py +++ b/forum/views/meta.py @@ -28,7 +28,7 @@ def favicon(request): return HttpResponseRedirect(str(settings.APP_FAVICON)) def custom_css(request): - return HttpResponse(or_preview(settings.CUSTOM_CSS, request), mimetype="text/css") + return HttpResponse(or_preview(settings.CUSTOM_CSS, request), content_type="text/css") def static(request, title, content): return render_to_response('static.html', {'content' : content, 'title': title}, @@ -146,7 +146,7 @@ def page(request): sidebar = mark_safe(sidebar) else: - return HttpResponse(page.body, mimetype=page.extra.get('mimetype', 'text/html')) + return HttpResponse(page.body, content_type=page.extra.get('mimetype', 'text/html')) render = page.extra.get('render', 'markdown')