Skip to content

Commit 9177427

Browse files
hackermdhackermd
andauthored
fix(request) acceptable media types for retreval of frames (#49)
* Fix acceptable media types for frame retrieval * Increase package version Co-authored-by: hackermd <[email protected]>
1 parent e03be5a commit 9177427

File tree

3 files changed

+48
-43
lines changed

3 files changed

+48
-43
lines changed

package-lock.json

Lines changed: 45 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dicomweb-client",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
44
"description": "Implementation of DICOMweb client code",
55
"main": "build/dicomweb-client.js",
66
"module": "build/dicomweb-client.es.js",

src/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ class DICOMwebClient {
12521252

12531253
const commonMediaType = DICOMwebClient._getCommonMediaType(mediaTypes);
12541254

1255-
if (commonMediaType === MEDIATYPES.OCTET_STREAM) {
1255+
if (commonMediaType.startsWith("application")) {
12561256
return this._httpGetMultipartApplicationOctetStream(
12571257
url, mediaTypes, false, false, progressCallback, withCredentials
12581258
);
@@ -1742,7 +1742,7 @@ class DICOMwebClient {
17421742
*
17431743
* @param {Object} options
17441744
* @param {String} BulkDataURI - URI for retrieval of bulkdata
1745-
* @return {Promise<ArrayBuffer>}
1745+
* @returns {Promise<Array>} Bulkdata parts
17461746
*/
17471747
retrieveBulkData(options) {
17481748
if (!("BulkDataURI" in options)) {

0 commit comments

Comments
 (0)