File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22from __future__ import absolute_import , unicode_literals
33
44import jwt .exceptions
5- from django .utils .encoding import smart_text
5+ from django .utils .encoding import smart_str
66from django .utils .translation import ugettext as _
77from rest_framework import exceptions
88from rest_framework .authentication import BaseAuthentication , get_authorization_header
@@ -31,7 +31,7 @@ def authenticate(self, request):
3131 auth = get_authorization_header (request ).split ()
3232 authenticate_header = self .authenticate_header (request = request )
3333
34- if not auth or smart_text (auth [0 ].lower ()) != authenticate_header .lower ():
34+ if not auth or smart_str (auth [0 ].lower ()) != authenticate_header .lower ():
3535 return None
3636
3737 if len (auth ) == 1 :
You can’t perform that action at this time.
0 commit comments