fnp
/
django-cas-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1d2632a
)
Django 1.7 compatibility fix.
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 19 Sep 2014 21:44:38 +0000
(23:44 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 19 Sep 2014 21:44:38 +0000
(23:44 +0200)
cas_provider/views.py
patch
|
blob
|
history
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
6cc322a
..
976c271
100644
(file)
--- 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):
def _cas2_sucess_response(user, pgt=None, proxies=None):
- return HttpResponse(auth_success_response(user, pgt, proxies),
mime
type='text/xml')
+ return HttpResponse(auth_success_response(user, pgt, proxies),
content_
type='text/xml')
def _cas2_error_response(code, message=None):
def _cas2_error_response(code, message=None):
@@
-354,7
+354,7
@@
def _cas2_error_response(code, message=None):
</cas:serviceResponse>''' % {
'code': code,
'message': message if message else dict(ERROR_MESSAGES).get(code)
</cas:serviceResponse>''' % {
'code': code,
'message': message if message else dict(ERROR_MESSAGES).get(code)
- },
mime
type='text/xml')
+ },
content_
type='text/xml')
def proxy_success(pt):
def proxy_success(pt):