mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-21 21:45:20 +02:00
fix: pass the leading slash to the compute load endpoint path
getUrl joins the path directly after /v3/compute, so a path without the leading slash produces /v3/computedocker/images/load and the compute answers 404. Match the path shape used by forward() and the image sync path.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -244,7 +244,7 @@ async def docker_load_image(compute_id: Union[str, UUID], request: Request) -> N
|
||||
"""
|
||||
|
||||
compute = Controller.instance().get_compute(str(compute_id))
|
||||
await compute.http_query("POST", "docker/images/load", data=request.stream(), timeout=None)
|
||||
await compute.http_query("POST", "/docker/images/load", data=request.stream(), timeout=None)
|
||||
|
||||
|
||||
@router.get("/{compute_id}/virtualbox/vms", response_model=List[schemas.ComputeVirtualBoxVM])
|
||||
|
||||
Reference in new issue
Block a user