Description
This issue is automatically created based on existing pull request: #29274: Update Curl to respect case-insensitive headers
According to RFC 2616 header names are case-insensitive: "Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive." - see https://tools.ietf.org/html/rfc2616#section-4.2
The "Set-Cookie" comparison in the current Curl client is case-sensitive and can cause problems with some (rare) HTTP servers.
Preconditions: (*)
Magento 2.4-develop
According to RFC 2616 header names are case-insensitive: "Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive." - see https://tools.ietf.org/html/rfc2616#section-4.2
The "Set-Cookie" comparison in the previous version is case-sensitive and can cause problems with some (rare) HTTP servers.
Related Pull Requests
None
Fixed Issues (if relevant)
Did not create an issue
Steps to reproduce:
- Need to become a debugger to check the value on line:
if ("Set-Cookie" == $name) {
- Go to Admin -> Find Partners & Extensions (for example);
Actual Result: ✖️ It doesn't respect those header names ("set-cookie" or "SET-COOKIE")
Expected Result: ✔️ It should respect those header names
Questions or comments
Please note that I did not provide a unit test for this specific issue. If required please let me know.
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status