summaryrefslogtreecommitdiff
path: root/glanceclient/common/https.py
diff options
context:
space:
mode:
authorLouis Taylor <kragniz@gmail.com>2014-11-01 20:49:03 +0000
committerLouis Taylor <kragniz@gmail.com>2015-01-04 20:52:00 +0000
commitdf02ee8e2a10d2f37a9c013dec157c88b8dce49d (patch)
tree6adf239757b8880c0d6d0e5b70e110d5625442ae /glanceclient/common/https.py
parent7ce1ff9325be702384d728ad6a94f597680e1707 (diff)
downloadpython-glanceclient-df02ee8e2a10d2f37a9c013dec157c88b8dce49d.tar.gz
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: I48598a824396bc6e7cba69eb3ce32e7c8f30a18a
Diffstat (limited to 'glanceclient/common/https.py')
0 files changed, 0 insertions, 0 deletions