Skip to content

Commit f832ef8

Browse files
authoredDec 11, 2023··
Merge pull request #1444 from runlevel5/patch-1
#1444 Fix missing HTTPMessage.getHeader()
2 parents ee3958a + 4bf60df commit f832ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎framework/pym/play/commands/modulesrepo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def retrieve(self, url, destination, callback=None):
117117
return self.size
118118

119119
def chunk_read(self, response, destination, chunk_size=8192, report_hook=None):
120-
total_size = response.info().getheader('Content-Length').strip()
120+
total_size = response.headers['Content-Length'].strip()
121121
total_size = int(total_size)
122122
bytes_so_far = 0
123123
file = open(destination,"wb")

0 commit comments

Comments
 (0)
Please sign in to comment.