diff --git a/src/api.js b/src/api.js index 5431077..4dc111c 100644 --- a/src/api.js +++ b/src/api.js @@ -860,6 +860,11 @@ class DICOMwebClient { DICOMwebClient._assertMediaTypeIsValid(mediaType); let fieldValue = `multipart/related; type="${mediaType}"`; + if (mediaType.endsWith("octet-stream")) { + // Prefer explicit transfer syntax + fieldValue += "; q=0.9"; + } + if (isObject(supportedMediaTypes)) { // SupportedMediaTypes is a lookup table that maps Transfer Syntax UID // to one or more Media Types