mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13:00 +00:00
Don't escape servername in json blobs
This commit is contained in:
@@ -288,7 +288,7 @@ class Proxy(LoggingConfigurable):
|
|||||||
await self.add_route(
|
await self.add_route(
|
||||||
spawner.proxy_spec,
|
spawner.proxy_spec,
|
||||||
spawner.server.host,
|
spawner.server.host,
|
||||||
{'user': user.name, 'server_name': url_escape_path(server_name)},
|
{'user': user.name, 'server_name': server_name},
|
||||||
)
|
)
|
||||||
|
|
||||||
async def delete_user(self, user, server_name=''):
|
async def delete_user(self, user, server_name=''):
|
||||||
|
@@ -175,7 +175,7 @@ async def test_create_invalid_named_server(app, named_servers):
|
|||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
assert exc.value.response.json() == {
|
assert exc.value.response.json() == {
|
||||||
'status': 400,
|
'status': 400,
|
||||||
'message': 'Invalid server_name: a$/b',
|
'message': "Invalid server_name (may not contain '/'): a$/b",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user