fix(oci): Prefer raw request body for content-addressable OCI operations and expose rawBody on request context
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user