mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-6805] getNodeContent allows adding additional options (#9343)
This commit is contained in:
@@ -477,13 +477,18 @@ export class NodesApi extends BaseApi {
|
||||
};
|
||||
|
||||
const queryParams = {
|
||||
attachment: opts?.attachment
|
||||
attachment: opts?.attachment ?? null
|
||||
};
|
||||
|
||||
const headerParams = {
|
||||
'If-Modified-Since': opts?.ifModifiedSince,
|
||||
Range: opts?.range
|
||||
};
|
||||
const headerParams = {};
|
||||
|
||||
if (opts?.ifModifiedSince) {
|
||||
Object.defineProperty(headerParams, 'If-Modified-Since', { value: opts?.ifModifiedSince });
|
||||
}
|
||||
|
||||
if (opts?.range) {
|
||||
Object.defineProperty(headerParams, 'Range', { value: opts?.range });
|
||||
}
|
||||
|
||||
const accepts = ['application/octet-stream'];
|
||||
|
||||
|
Reference in New Issue
Block a user