Skip to content

Commit

Permalink
FIX: Attempt to stream from response file pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 4, 2023
1 parent ff436d3 commit f144e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/filebasedimages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f144e88

Please sign in to comment.