X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/1d2632a20124e8d08a234486e3c2da81b23d5734..bfc8611ed146567fadac90312da6f172601908ec:/cas_provider/views.py?ds=sidebyside 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):