Use request._decode instead of request.decode.

This commit is contained in:
Guillaume Ayoub 2010-04-09 21:53:00 +02:00
parent f38576d999
commit efed0b415d

View File

@ -54,7 +54,7 @@ def _check(request, function):
authorization = request.headers.get("Authorization", None)
if authorization:
challenge = authorization.lstrip("Basic").strip().encode("ascii")
plain = request.decode(base64.b64decode(challenge))
plain = request._decode(base64.b64decode(challenge))
user, password = plain.split(":")
else:
user = password = None