mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 15:52:39 +02:00
fix: Bug in dataset (in fn download_url) which wrongly interprets the Content-Length meta data, and just takes first character.
This commit is contained in:
parent
69f0ea1b11
commit
826618e143
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ def download_url(url, store_directory, save_name=None, messages=True, suffix='')
|
|||
meta = response.info()
|
||||
content_length_str = meta.get("Content-Length")
|
||||
if content_length_str:
|
||||
file_size = int(content_length_str[0])
|
||||
file_size = int(content_length_str)
|
||||
else:
|
||||
file_size = None
|
||||
status = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue