Skip to content

Commit

Permalink
fix: missing end res in retrieve instances
Browse files Browse the repository at this point in the history
- After writing multipart data, missing the `res.end()` to end response
  • Loading branch information
Chinlinlee committed May 19, 2022
1 parent ca1d81c commit 6b5759b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/dicom-web/controller/WADO-RS/retrieveInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = async function(req, res) {
});
return res.end(JSON.stringify(writeMultipartResult));
}
return res.end();
}
return wadoService.sendNotSupportedMediaType(res, req.headers.accept);
} catch(e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = async function(req, res) {
});
return res.end(JSON.stringify(writeMultipartResult));
}
return res.end();
}
return wadoService.sendNotSupportedMediaType(res, req.headers.accept);
} catch(e) {
Expand Down
1 change: 1 addition & 0 deletions api/dicom-web/controller/WADO-RS/retrieveStudyInstances.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = async function(req, res) {
});
return res.end(JSON.stringify(writeMultipartResult));
}
return res.end();
}
return wadoService.sendNotSupportedMediaType(res, req.headers.accept);
} catch(e) {
Expand Down

0 comments on commit 6b5759b

Please sign in to comment.