Bug #11262
get_http_binding() fails if we receive a HTTP-Redirect (SAMLRequest in query string) with the POST method
Statut:
Rejeté
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
08 juin 2016
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
get_http_binding()
should verify that META['CONTENT_TYPE'] exist, if not it should return None
Historique
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
- Statut changé de Nouveau à Rejeté
Le problème n'existe pas ou plus, code actuel :
def get_http_binding(request): if request.method in ('GET', 'HEAD'): return 'GET' elif request.method == 'POST': # disambiguate SOAP and form POST if request.META.get('CONTENT_TYPE') in ['application/x-www-form-urlencoded', 'multipart/form-data']: return 'POST' else: return 'SOAP'