feat(transferSyntax): prefer server transcoded transfer syntax for all images (#3883)

This commit is contained in:
Alireza authored and GitHub committed 2024-01-09 12:36:29 -05:00
1 parent 7c551f5043
commit 1456a493d6
4 files changed
+22 -6

No files matched your search

@@ -1,6 +1,6 @@
const generateAcceptHeader = (
configAcceptHeader = [],
requestTransferSyntaxUID = null,
requestTransferSyntaxUID = '*', //default to accept all transfer syntax
omitQuotationForMultipartRequest = false
): string[] => {
//if acceptedHeader is passed by config use it as it.
@@ -17,6 +17,7 @@ const generateAcceptHeader = (
acceptHeader.push('type=application/octet-stream');
}
acceptHeader.push('transfer-syntax=*');
if (!omitQuotationForMultipartRequest) {
//need to add quotation for each mime type of each accept entry
acceptHeader = acceptHeader.map(mime => {