Comment 3 for bug 1150380

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/27622
Committed: http://github.com/openstack/glance/commit/0a4f4aff6c0ef7b74492dab6a88a2f4e40a3a422
Submitter: Jenkins
Branch: master

commit 0a4f4aff6c0ef7b74492dab6a88a2f4e40a3a422
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:
        - 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.

    Fixes bug: 1150380

    Change-Id: Ieb65837d4e3fe310f97d9666882ecc572b14956a