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

Accept octet-stream as media type for multipart text fields (#2746) #2926

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

987Nabil
Copy link
Contributor

The endpoint defined in #2746 looks and works as expected. But during testing and debugging I realised that some tools (Postman, but also we in some internal code) default fields of multipart to octet-stream.
This we did not handle gracefully until now. For fields that have no explicit media type and expect a value that is parsable by TextBinaryCodec (aka all default types that can be represented as a String) we will accept application/octet-stream with this PR.

fixes #2746
/claim #2746

@jdegoes jdegoes merged commit 006b171 into zio:main Jun 23, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endpoint API:‌ Support octet-stream Media-type For Multipart Form Fields
2 participants