mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
add / to user-redirect
Some proxies may not correctly route /user/name, only /user/name/...
This commit is contained in:
@@ -218,7 +218,7 @@ def test_user_redirect_deprecated(app):
|
||||
r.raise_for_status()
|
||||
print(urlparse(r.url))
|
||||
path = urlparse(r.url).path
|
||||
assert path == ujoin(app.base_url, '/user/%s' % name)
|
||||
assert path == ujoin(app.base_url, '/user/%s/' % name)
|
||||
|
||||
r = yield get_page('/user/baduser/test.ipynb', app, cookies=cookies, hub=False)
|
||||
r.raise_for_status()
|
||||
|
Reference in New Issue
Block a user