From bfc8611ed146567fadac90312da6f172601908ec Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 19 Sep 2014 23:44:38 +0200 Subject: [PATCH 1/1] Django 1.7 compatibility fix. --- cas_provider/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.20.1