diff --git a/nibabel/filebasedimages.py b/nibabel/filebasedimages.py index 42760cccd..4bf6c7a81 100644 --- a/nibabel/filebasedimages.py +++ b/nibabel/filebasedimages.py @@ -612,4 +612,4 @@ def from_url( Time (in seconds) to wait for a response """ response = request.urlopen(url, timeout=timeout) - return klass.from_stream(response) + return klass.from_stream(response.fp)