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:
YueGuobin committed 2026-11-06 12:46:21 +08:00
1 parent 092202615e
commit 4c00d223e4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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])