-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for DICOMweb range requests
When a range request is made or a fuse mount is attempted, we compute the size of the DICOM file. Currently, the only reliable way that we know to do this is by streaming the whole file and counting the total bytes read. After the file size is computed, it is saved in `file['size']` so it does not need to be computed again. Then, the range requests can be successfully made, complete with accurate `Content-Length` and `Content-Range` headers. Signed-off-by: Patrick Avery <[email protected]>
- Loading branch information
Showing
2 changed files
with
108 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters