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

Conversation

github-actions[bot]
Copy link

Description

Backport of #9265 to 7.x.

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)
@puppetlabs-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@joshcooper joshcooper closed this Feb 27, 2024
@joshcooper joshcooper reopened this Feb 27, 2024
@mhashizume mhashizume added the bug Something isn't working label Feb 27, 2024
@mhashizume mhashizume merged commit 11abbca into 7.x Feb 27, 2024
12 checks passed
@mhashizume mhashizume deleted the backport-9265-to-7.x branch February 27, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants