Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 7.x] Remove Accept-Encoding header on redirect #9267

Merged
merged 1 commit into from
Feb 27, 2024

Commits on Feb 27, 2024

  1. Remove Accept-Encoding header on redirect

    Prior to this commit, Puppet would copy all request headers in an HTTP
    redirect, including Accept-Encoding. In some cases when HTTP compression
    was enabled, the response would fail to get decompressed, then would
    fail to get parsed and trigger a vague error.
    
    This commit strips the Accept-Encoding headers on redirect, allowing
    Ruby's built-in Net::HTTP to both compress and decompress the traffic.
    
    (cherry picked from commit d0a73bb)
    mhashizume authored and github-actions[bot] committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    d02a4a5 View commit details
    Browse the repository at this point in the history