Closed guoye-zhang closed 4 months ago
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. ;
joining is already tested by the cookie header.
@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.