Skip to content

Commit

Permalink
Merge pull request #1444 from runlevel5/patch-1
Browse files Browse the repository at this point in the history
#1444 Fix missing HTTPMessage.getHeader()
  • Loading branch information
xael-fry authored Dec 11, 2023
2 parents ee3958a + 4bf60df commit f832ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/pym/play/commands/modulesrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def retrieve(self, url, destination, callback=None):
return self.size

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

0 comments on commit f832ef8

Please sign in to comment.