Skip to content

Commit

Permalink
Fix logic that determines if nifti file is compressed
Browse files Browse the repository at this point in the history
  • Loading branch information
faridyagubbayli authored Dec 4, 2024
1 parent 5a7542d commit 83ce7a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function fetchArrayBuffer({
onHeader,
loadFullVolume = false,
}) {
const isCompressed = url.endsWith('.gz');
const isCompressed = url.includes('.gz');
let receivedData = new Uint8Array(0);
let niftiHeader = null;
const sliceInfo = null;
Expand Down

0 comments on commit 83ce7a1

Please sign in to comment.