diff --git a/framework/pym/play/commands/modulesrepo.py b/framework/pym/play/commands/modulesrepo.py index d76681cc42..25dd8336b5 100644 --- a/framework/pym/play/commands/modulesrepo.py +++ b/framework/pym/play/commands/modulesrepo.py @@ -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")