Skip to content

Commit 5680c92

Browse files
committed
Fix #132: Python 2 getheaders should be Python 3 get_all
1 parent 3e4d322 commit 5680c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ def download_file(self, path, setting):
12571257
web_file = request.urlopen(url)
12581258
f = open(tmp_file, 'ab')
12591259
meta = web_file.info()
1260-
file_size = tmp_size + int(meta.getheaders("Content-Length")[0])
1260+
file_size = tmp_size + int(meta.get_all("Content-Length")[0])
12611261

12621262
version = self.selected_version()
12631263
version_file = self.settings['base_url'].format(version)

0 commit comments

Comments
 (0)