Skip to content

Comments

Better support for case insensitive headers.#1919

Merged
ioquatix merged 1 commit into2-2-stablefrom
case-insensitive-headers
Jun 30, 2022
Merged

Better support for case insensitive headers.#1919
ioquatix merged 1 commit into2-2-stablefrom
case-insensitive-headers

Conversation

@ioquatix
Copy link
Member

@ioquatix ioquatix commented Jun 30, 2022

@ioquatix ioquatix force-pushed the case-insensitive-headers branch from ab0237c to ab14503 Compare June 30, 2022 12:21
@ioquatix ioquatix requested a review from jeremyevans June 30, 2022 12:21
Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good.

The lib/rack/response.rb change is unrelated. CACHE_CONTROL is already a string, so there is no reason to use get_header as opposed to accessing headers directly. Even if you wanted to use get_header (for consistency?), it isn't related to case insensitive headers and should be committed separately.

I would mention in CHANGELOG that this change is purely for Rack::ETag, since that is the only middleware with the change.

OK to commit without further review after those changes.

@ioquatix ioquatix force-pushed the case-insensitive-headers branch from c849ece to 6b85968 Compare June 30, 2022 21:35
@ioquatix ioquatix merged commit 0077900 into 2-2-stable Jun 30, 2022
@ioquatix ioquatix deleted the case-insensitive-headers branch June 30, 2022 22:03
pgwillia added a commit to ualbertalib/builder_deferred_tagging that referenced this pull request Sep 27, 2022
Bumps [rack](https://github.com/rack/rack) from 2.2.2 to 2.2.4.

Changelog
## [2.2.4] - 2022-06-30

- Better support for lower case headers in `Rack::ETag` middleware. ([#1919](rack/rack#1919), [@ioquatix](https://github.com/ioquatix))
- Use custom exception on params too deep error. ([#1838](rack/rack#1838), [@simi](https://github.com/simi))

## [2.2.3.1] - 2022-05-27

- [CVE-2022-30123] Fix shell escaping issue in Common Logger
- [CVE-2022-30122] Restrict parsing of broken MIME attachments

## [2.2.3] - 2020-06-15

### Security

- [[CVE-2020-8184](https://nvd.nist.gov/vuln/detail/CVE-2020-8184)] Do not allow percent-encoded cookie name to override existing cookie names. BREAKING CHANGE: Accessing cookie names that require URL encoding with decoded name no longer works. ([@fletchto99](https://github.com/fletchto99))
pgwillia added a commit to ualbertalib/builder_deferred_tagging that referenced this pull request Sep 27, 2022
Bumps [rack](https://github.com/rack/rack) from 2.2.2 to 2.2.4.

Changelog
## [2.2.4] - 2022-06-30

- Better support for lower case headers in `Rack::ETag` middleware. ([#1919](rack/rack#1919), [@ioquatix](https://github.com/ioquatix))
- Use custom exception on params too deep error. ([#1838](rack/rack#1838), [@simi](https://github.com/simi))

## [2.2.3.1] - 2022-05-27

- [CVE-2022-30123] Fix shell escaping issue in Common Logger
- [CVE-2022-30122] Restrict parsing of broken MIME attachments

## [2.2.3] - 2020-06-15

### Security

- [[CVE-2020-8184](https://nvd.nist.gov/vuln/detail/CVE-2020-8184)] Do not allow percent-encoded cookie name to override existing cookie names. BREAKING CHANGE: Accessing cookie names that require URL encoding with decoded name no longer works. ([@fletchto99](https://github.com/fletchto99))
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.

2 participants