Projet

Général

Profil

0008-changed-.raw_post_data-to-.body-as-per-django1.4-dep.patch

Nickolas Grigoriadis, 19 novembre 2014 13:18

Télécharger (852 octets)

Voir les différences:

Subject: [PATCH 2/3] changed .raw_post_data to .body as per django1.4
 deprecation rules.

 authentic2/saml/common.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
authentic2/saml/common.py
58 58
    assert request.method == 'POST' \
59 59
            and 'CONTENT_TYPE' in request.META \
60 60
            and 'text/xml' in request.META['CONTENT_TYPE'], 'not a SOAP message'
61
    return request.raw_post_data
61
    return request.body
62 62

  
63 63
def get_http_binding(request):
64 64
    if request.method in ('GET', 'HEAD'):
65
-