Reviewed: https://review.opendev.org/c/openstack/neutron/+/1011019 Committed: https://opendev.org/openstack/neutron/commit/c2e891975890100342d0fe017ee62b21578bee95 Submitter: "Zuul (22348)" Branch: stable/2025.2
commit c2e891975890100342d0fe017ee62b21578bee95 Author: Pavlo Shchelokovskyy <[email protected]> Date: Thu Dec 11 18:33:29 2025 +0200 [metadata] cleanup response headers Python's `requests` lib is always asking for 'gzip,deflate' encoding by itself, and decoding those by itself too, but does not remove the content-encoding header from response, so don't rely on this header alone to decide if content should be decoded or not. Also, content-length and transfer-encoding are left untouched, even if they correspond to originally gzip-ed content. This all interferes when user data is itself gzip-ed and there's a proper web server like apache2 that itself generates proper gzip-ed response. Clean-up erroneous headers, and let webob recalculate them as needed. Related-Bug: #2120723 Closes-Bug: #2156587 Change-Id: Ia5d0cbdc5c715462438e38135e441ce9f5ea98c1 Signed-off-by: Pavlo Shchelokovskyy <[email protected]> (cherry picked from commit d70bdc9df51f46ea6d64c3c11ce09054c86fa155) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2156587 Title: haproxy-metadata-proxy returns 502 To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/2156587/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
