commit df02ee8e2a10d2f37a9c013dec157c88b8dce49d
Author: Louis Taylor <email address hidden>
Date: Sat Nov 1 20:49:03 2014 +0000
Fix Requests breaking download progress bar
The move to the requests library (dbb242b) broke the progress bar during
downloading an image with --progress enabled, due to requests returning
a generator, which has no __len__ function. This patch adds an iterable
wrapper which provides the length, sourced from Content-Length headers.
Reviewed: https:/ /review. openstack. org/132432 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=df02ee8e2a1 0d2f37a9c013dec 157c88b8dce49d
Committed: https:/
Submitter: Jenkins
Branch: master
commit df02ee8e2a10d2f 37a9c013dec157c 88b8dce49d
Author: Louis Taylor <email address hidden>
Date: Sat Nov 1 20:49:03 2014 +0000
Fix Requests breaking download progress bar
The move to the requests library (dbb242b) broke the progress bar during
downloading an image with --progress enabled, due to requests returning
a generator, which has no __len__ function. This patch adds an iterable
wrapper which provides the length, sourced from Content-Length headers.
Closes-Bug: #1384664
Change-Id: I48598a824396bc 6e7cba69eb3ce32 e7c8f30a18a