-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fix request and response translation #51
Conversation
Change looks great, thank you @guoye-zhang! Do you think we can extend the tests to cover the different delimiter appending logic based? |
I updated the test with multiple values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @guoye-zhang!
@swift-server-bot test this please |
@swift-server-bot add to allowlist |
The failed CI is a transitive infra issue, rekicking. |
@swift-server-bot test this please |
Motivation
Fix the translation between Foundation types and HTTP types.
Modifications
The code is mostly borrowed from swift-http-types:
https://github.com/apple/swift-http-types/tree/main/Sources/HTTPTypesFoundation
Translates the string encoding (URLSession expects ISOLatin1) and handles multi-value fields.
Result
Should address the cookie issue among other issues.
Test Plan
All existing tests still pass.