Reviewed: https://review.openstack.org/13709 Committed: http://github.com/openstack/python-glanceclient/commit/727aadbc257ec3c99dd1621202948d288d45c8cc Submitter: Jenkins Branch: master
commit 727aadbc257ec3c99dd1621202948d288d45c8cc Author: Stuart McLaren <email address hidden> Date: Wed Sep 26 12:56:51 2012 +0000
Handle create/update of images with unknown size
It may not be possible to know in advance the total size of image data which is to be uploaded, for example if the data is being piped to stdin.
To handle this we use HTTP Transfer-Encoding: chunked and do not set any image size headers.
Various subtly different cases needed to be handled for both image-create and image-update, including:
* input from named pipe * piped input of zero size * regular file of zero length
Fix for bug 1056220.
Change-Id: I0c7f0a64d883e058993b954a1c465c5b057f2bcf
Reviewed: https:/ /review. openstack. org/13709 github. com/openstack/ python- glanceclient/ commit/ 727aadbc257ec3c 99dd1621202948d 288d45c8cc
Committed: http://
Submitter: Jenkins
Branch: master
commit 727aadbc257ec3c 99dd1621202948d 288d45c8cc
Author: Stuart McLaren <email address hidden>
Date: Wed Sep 26 12:56:51 2012 +0000
Handle create/update of images with unknown size
It may not be possible to know in advance the total
size of image data which is to be uploaded, for example
if the data is being piped to stdin.
To handle this we use HTTP Transfer-Encoding: chunked
and do not set any image size headers.
Various subtly different cases needed to be handled for
both image-create and image-update, including:
* input from named pipe
* piped input of zero size
* regular file of zero length
Fix for bug 1056220.
Change-Id: I0c7f0a64d883e0 58993b954a1c465 c5b057f2bcf