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

Add support for nil encoding to address iCloud issues #685

Merged
merged 4 commits into from
Feb 9, 2022

Conversation

Davidde94
Copy link
Collaborator

Resolves #684

iCloud is sending nil for message encoding types, which isn't allowed according to the spec. That said, we have to support it regardless, so we now support nil for the message encoding.

Also added some body parsing tests as there apparently weren't any "combined" ones like this. Additionally as there are multiple ways of saying "multipart/mixed" and other "multipart/*" subtypes, we now check and merge them.

@danieleggert
Copy link
Collaborator

ResponseParser+Tests.swift:85: error: ResponseParser_Tests.testParseResponseStream is failing.

@Davidde94
Copy link
Collaborator Author

@swift-server-bot test this please

@Davidde94 Davidde94 merged commit 9c2c43f into apple:main Feb 9, 2022
@Davidde94 Davidde94 deleted the de/fix-failing-body-structure branch February 9, 2022 16:16
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.

BODYSTRUCTURE fails to parse
2 participants