Skip to content

Commit

Permalink
fix(request) acceptable media types for retreval of frames (#49)
Browse files Browse the repository at this point in the history
* Fix acceptable media types for frame retrieval

* Increase package version

Co-authored-by: hackermd <[email protected]>
  • Loading branch information
hackermd and hackermd authored Jan 12, 2022
1 parent e03be5a commit 9177427
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 43 deletions.
85 changes: 45 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dicomweb-client",
"version": "0.8.3",
"version": "0.8.4",
"description": "Implementation of DICOMweb client code",
"main": "build/dicomweb-client.js",
"module": "build/dicomweb-client.es.js",
Expand Down
4 changes: 2 additions & 2 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ class DICOMwebClient {

const commonMediaType = DICOMwebClient._getCommonMediaType(mediaTypes);

if (commonMediaType === MEDIATYPES.OCTET_STREAM) {
if (commonMediaType.startsWith("application")) {
return this._httpGetMultipartApplicationOctetStream(
url, mediaTypes, false, false, progressCallback, withCredentials
);
Expand Down Expand Up @@ -1742,7 +1742,7 @@ class DICOMwebClient {
*
* @param {Object} options
* @param {String} BulkDataURI - URI for retrieval of bulkdata
* @return {Promise<ArrayBuffer>}
* @returns {Promise<Array>} Bulkdata parts
*/
retrieveBulkData(options) {
if (!("BulkDataURI" in options)) {
Expand Down

0 comments on commit 9177427

Please sign in to comment.