Skip to content

Commit bc35f09

Browse files
author
hackermd
committed
Fix quotation mark in accept header field
1 parent d745f65 commit bc35f09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ class DICOMwebClient {
667667
mediaTypes.forEach(item => {
668668
const { transferSyntaxUID, mediaType } = item;
669669
DICOMwebClient._assertMediaTypeIsValid(mediaType);
670-
let fieldValue = `multipart/related; type="${mediaType}"`;
670+
let fieldValue = `multipart/related; type="${mediaType}`;
671671

672672
if (isObject(supportedMediaTypes)) {
673673
// SupportedMediaTypes is a lookup table that maps Transfer Syntax UID
@@ -723,6 +723,7 @@ class DICOMwebClient {
723723
);
724724
}
725725

726+
fieldValue += `"`;
726727
fieldValueParts.push(fieldValue);
727728
});
728729

0 commit comments

Comments
 (0)