Skip to content

Commit

Permalink
Fix missing HTTPMessage.getHeader()
Browse files Browse the repository at this point in the history
  • Loading branch information
runlevel5 authored Jun 26, 2023
1 parent 557a968 commit 4bf60df
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 4bf60df

Please sign in to comment.