fix(oci): Prefer raw request body for content-addressable OCI operations and expose rawBody on request context

This commit is contained in:
2025-11-25 17:15:47 +00:00
parent 37a89239d9
commit a2f7f43027
4 changed files with 25 additions and 5 deletions

View File

@@ -158,6 +158,12 @@ export interface IRequestContext {
headers: Record<string, string>;
query: Record<string, string>;
body?: any;
/**
* Raw request body as bytes. MUST be provided for content-addressable operations
* (OCI manifests, blobs) to ensure digest calculation matches client expectations.
* If not provided, falls back to 'body' field.
*/
rawBody?: Buffer;
token?: string;
}