diff --git a/jupyterhub/services/auth.py b/jupyterhub/services/auth.py index 9c9028a6..518fd7e8 100644 --- a/jupyterhub/services/auth.py +++ b/jupyterhub/services/auth.py @@ -428,7 +428,7 @@ class HubAuth(SingletonConfigurable): ) auth_header_name = 'Authorization' - auth_header_pat = re.compile('token\s+(.+)', re.IGNORECASE) + auth_header_pat = re.compile(r'token\s+(.+)', re.IGNORECASE) def get_token(self, handler): """Get the user token from a request