Skip to content

Various Cookie fixes #1706

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

Merged

Conversation

maksimorlovich
Copy link
Contributor

  • Add support for additional Set-Cookie formats that web servers can return
  • Properly handle HTTP header parsing to extract values since values can contain colons
  • Make sure to set cookies on redirect requests
  • Use setValue instead of addValue when applying cookies to requests otherwise,
    Cookie header might contain: cookie1=value1,cookie1=value1; cookie2=value2
  • New unit tests for cookie formats and redirect with Set-Cookie

(cherry picked from commit 97a93b5 - #1700)

- Add support for additional Set-Cookie formats that web servers can return
- Properly handle HTTP header parsing to extract values since values can contain colons
- Make sure to set cookies on redirect requests
- Use setValue instead of addValue when applying cookies to requests otherwise,
  Cookie header might contain: cookie1=value1,cookie1=value1; cookie2=value2
- New unit tests for cookie formats and redirect with Set-Cookie

(cherry picked from commit 97a93b5)
@maksimorlovich
Copy link
Contributor Author

@ianpartridge @parkera, please review this cherry-pick of #1700. Thanks!

@spevans
Copy link
Contributor

spevans commented Sep 25, 2018

@swift-ci test

@maksimorlovich
Copy link
Contributor Author

@jrose-apple, I've included #1707 to this PR. Can we get this retested please? Thank you!

@pushkarnk
Copy link
Member

@swift-ci please test

1 similar comment
@pushkarnk
Copy link
Member

@swift-ci please test

@maksimorlovich
Copy link
Contributor Author

@spevans, can this be merged please? Thanks!

@jrose-apple
Copy link
Contributor

4.2 branch changes require approval from the release manager (Tony) even beyond a normal review.

@parkera parkera merged commit 753e621 into swiftlang:swift-4.2-branch Oct 1, 2018
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.

5 participants