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

Lowercase all response headers #744

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

amatsuda
Copy link
Member

@amatsuda amatsuda commented Apr 1, 2022

Rack::Lint requires all response headers to be lower-cased since rack/rack@472e12f, and the CI here is failing due to that change. So here are fixes on Sprockets::Server to comply with the Rack::Lint change and make the CI green again.

See rack/rack#1592 for more details.

/cc @ioquatix @jeremyevans

amatsuda added a commit to amatsuda/sprockets that referenced this pull request Apr 1, 2022
Rack::Lint 3 requires all response headers to be lower-cased
see: rack/rack#1592

s/Content-Type/content-type/g
s/Content-Length/content-length/g
s/Cache-Control/cache-control/g
s/ETag/etag/g
s/Vary/vary/g
s/X-Cascade/x-cascade/g
@rafaelfranca rafaelfranca merged commit 0f3e0e9 into rails:master Apr 5, 2022
@amatsuda amatsuda deleted the lowercase_headers branch April 6, 2022 00:28
@ioquatix
Copy link

ioquatix commented Apr 6, 2022

Thank you this looks great.

mishina2228 added a commit to mishina2228/web-console that referenced this pull request Jun 8, 2022
The latest rack 3.0 (unreleased) does not accept uppercase headers.
See rack/rack#1592 for more details.
refs:
- rack/rack#1812
- rails/sprockets#744
mishina2228 added a commit to mishina2228/web-console that referenced this pull request Jun 9, 2022
The latest rack 3.0 (unreleased) does not accept uppercase headers.
See rack/rack#1592 for more details.
refs:
- rack/rack#1812
- rails/sprockets#744
@Fjan
Copy link

Fjan commented Jun 27, 2022

This commit has a considerable impact on performance, see #746

patrickm68 added a commit to patrickm68/web-console that referenced this pull request Dec 1, 2022
The latest rack 3.0 (unreleased) does not accept uppercase headers.
See rack/rack#1592 for more details.
refs:
- rack/rack#1812
- rails/sprockets#744
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants