Add OpenStack request-body schemas and nested console PARAM sync.

This commit is contained in:
2026-07-18 08:47:16 +03:00
parent 6033967e6a
commit 2a8ce3a287
101 changed files with 150428 additions and 612 deletions
+3 -2
View File
@@ -244,12 +244,13 @@ async def download_image_file(
size = int((data or {}).get("size") or 0)
else:
size = int(row["size"] or 0)
# Always return at least one byte so clients / coverage see a real payload.
# Lab payload is capped; Content-Length must match the bytes we actually send
# (advertising the virtual image size breaks urllib/clients with IncompleteRead).
content = b"\0" * min(size, 64) if size else b"probe-image"
return Response(
content=content,
media_type="application/octet-stream",
headers={"Content-Length": str(len(content) if not size else size)},
headers={"Content-Length": str(len(content))},
)