mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
Fix DeprecationWarning in escape sequences.
This commit is contained in:
@@ -428,7 +428,7 @@ class HubAuth(SingletonConfigurable):
|
|||||||
)
|
)
|
||||||
|
|
||||||
auth_header_name = 'Authorization'
|
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):
|
def get_token(self, handler):
|
||||||
"""Get the user token from a request
|
"""Get the user token from a request
|
||||||
|
Reference in New Issue
Block a user