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

[SR-11662] HTTPCookie.cookies expects a "Set-Cookie" header and is case sensitive, while should be case insensitive. #3380

Open
swift-ci opened this issue Oct 23, 2019 · 0 comments

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-11662
Radar None
Original Reporter petrovi4 (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: 740f86aa02bcb78ada9d715bb1dc83d8

Issue Description:

According to rfc2616 https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive.

However, in the method HTTPCookie.cookies(withResponseHeaderFields:for: ) is checked for the header "Set-Cookie", and if this header in the dictionary is defined as "set-cookie" (what is the usual behavior of many http servers) - parsing the cookie does not occur.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant