Compress response's content according to client's accepted encoding
Currently Glance ignores the Accept-Encoding header and returns
responses as they are regardless the client accepts gzip or other type
of compression.
This patch adds this capability to glance (by using a middleware)
supporting just gzip for now.
Important note:
- The patch uses a lazy compression for Content-Type application/octet-stream but in order to do that, the content-length has to be unset which means that when an image is
downloaded the content-length will be unknown to the client.
Reviewed: https:/ /review. openstack. org/27622 github. com/openstack/ glance/ commit/ 0a4f4aff6c0ef7b 74492dab6a88a2f 4e40a3a422
Committed: http://
Submitter: Jenkins
Branch: master
commit 0a4f4aff6c0ef7b 74492dab6a88a2f 4e40a3a422
Author: Flaper Fesp <email address hidden>
Date: Sat Apr 27 14:42:15 2013 +0200
Compress response's content according to client's accepted encoding
Currently Glance ignores the Accept-Encoding header and returns
responses as they are regardless the client accepts gzip or other type
of compression.
This patch adds this capability to glance (by using a middleware)
supporting just gzip for now.
Important note:
application/ octet-stream but in order to do that, the
content- length has to be unset which means that when an image is
- The patch uses a lazy compression for Content-Type
downloaded the content-length will be unknown to the client.
Fixes bug: 1150380
Change-Id: Ieb65837d4e3fe3 10f97d9666882ec c572b14956a