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
@@ -211,7 +211,7 @@ class TestComputeFeatures:
compute.http_query.assert_called_once()
args, kwargs = compute.http_query.call_args
assert args[0] == "POST"
assert args[1] == "docker/images/load"
assert args[1] == "/docker/images/load"
assert kwargs["timeout"] is None
# the request body must be streamed, not buffered
assert hasattr(kwargs["data"], "__aiter__")