-
Notifications
You must be signed in to change notification settings - Fork 405
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
Endpoint API: Endpoint#outCodec
Doesn't Respect The Specified HeaderCodec
#2748
Labels
Comments
/bounty $150 |
💎 $150 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
jdegoes
pushed a commit
that referenced
this issue
Jun 8, 2024
🎉🎈 @987Nabil has been awarded $150! 🎈🎊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In the following example I expect the
Endpoint
API, to respect the header codecHeaderCodec.contentType.expect(Header.ContentType(MediaType.multipart.
mixed/))
so the content type of the response should bemultipart/mixed
but the current content type returned by this route ismultipart/form-data
To Reproduce
Steps to reproduce the behavior:
run the following example:
Then run the following curl command:
curl -X GET 'http://127.0.0.1:8080/books/123' -i
Expected behavior
The text was updated successfully, but these errors were encountered: