Skip to content

Commit

Permalink
fix(wado-rs): Fix broken case for getTransferSyntaxForContentType
Browse files Browse the repository at this point in the history
  • Loading branch information
swederik committed Oct 29, 2018
1 parent 42fa9e5 commit eacc417
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function getTransferSyntaxForContentType (contentType) {

if (params['transfer-syntax']) {
return params['transfer-syntax'];
} else if (contentType && !Object.keys(params).length) {
} else if (contentType && !Object.keys(params).length && defaultTransferSyntaxByType[contentType]) {
// dcm4che seems to be reporting the content type as just 'image/jp2'?
return defaultTransferSyntaxByType[contentType];
} else if (params.type && defaultTransferSyntaxByType[params.type]) {
Expand Down

0 comments on commit eacc417

Please sign in to comment.