Skip to content

Commit 5f76f57

Browse files
committed
getheader python 3
1 parent 13f6baa commit 5f76f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browserstack/local_binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __available_dir(self):
4747

4848
def download(self, chunk_size=8192, progress_hook=None):
4949
response = urlopen(self.http_path)
50-
total_size = int(response.info().getheader('Content-Length').strip())
50+
total_size = int(response.info().get_all('Content-Length').strip())
5151
bytes_so_far = 0
5252

5353
dest_parent_dir = self.__available_dir()

0 commit comments

Comments
 (0)