From: Radek Czajka Date: Fri, 19 Sep 2014 21:44:38 +0000 (+0200) Subject: Django 1.7 compatibility fix. X-Git-Tag: 22.4~10^2~10 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/bfc8611ed146567fadac90312da6f172601908ec?ds=sidebyside;hp=1d2632a20124e8d08a234486e3c2da81b23d5734 Django 1.7 compatibility fix. --- diff --git a/cas_provider/views.py b/cas_provider/views.py index 6cc322a..976c271 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -343,7 +343,7 @@ def _cas2_proxy_success(pt): def _cas2_sucess_response(user, pgt=None, proxies=None): - return HttpResponse(auth_success_response(user, pgt, proxies), mimetype='text/xml') + return HttpResponse(auth_success_response(user, pgt, proxies), content_type='text/xml') def _cas2_error_response(code, message=None): @@ -354,7 +354,7 @@ def _cas2_error_response(code, message=None): ''' % { 'code': code, 'message': message if message else dict(ERROR_MESSAGES).get(code) - }, mimetype='text/xml') + }, content_type='text/xml') def proxy_success(pt):