diff options
| author | Xavier Ordoquy | 2012-11-22 02:08:00 +0100 | 
|---|---|---|
| committer | Xavier Ordoquy | 2012-11-22 02:08:00 +0100 | 
| commit | 606c20f012c5a1fdcfd661eb280bab22b94afcf5 (patch) | |
| tree | 9df0e343b9adc196ddd7e5fbc1b93e4c339260b2 /rest_framework/authentication.py | |
| parent | 49f8e6419ad79a27c462eb4b0690f139ab8091de (diff) | |
| download | django-rest-framework-606c20f012c5a1fdcfd661eb280bab22b94afcf5.tar.bz2 | |
6 first tests passes under python 3.2
Diffstat (limited to 'rest_framework/authentication.py')
| -rw-r--r-- | rest_framework/authentication.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index 4b18b40c..d283959d 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -40,7 +40,7 @@ class BasicAuthentication(BaseAuthentication):              auth = request.META['HTTP_AUTHORIZATION'].split()              if len(auth) == 2 and auth[0].lower() == "basic":                  try: -                    auth_parts = base64.b64decode(auth[1]).partition(':') +                    auth_parts = base64.b64decode(auth[1].encode('utf8')).decode('utf8').partition(':')                  except TypeError:                      return None | 
