Skip to content

Commit 4bf60df

Browse files
authored
Fix missing HTTPMessage.getHeader()
1 parent 557a968 commit 4bf60df

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)