From 4bf60df66bdb3e69a8581f84b9f2f0197a678c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trung=20L=C3=AA?= <8@tle.id.au> Date: Mon, 26 Jun 2023 18:55:07 +1000 Subject: [PATCH] Fix missing HTTPMessage.getHeader() --- framework/pym/play/commands/modulesrepo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")