zio / zio-http

A next-generation Scala framework for building scalable, correct, and efficient HTTP clients and servers
https://zio.dev/zio-http
Apache License 2.0
800 stars 403 forks source link

ContentType based on MediaType in HttpContentCodec (#3023) #3109

Closed 987Nabil closed 2 months ago

987Nabil commented 2 months ago

The ContentType is currently set the the media type of the accept header. That is not right. We need to select the first matching media type of the HttpContentCodec. Accept might be */* but we want to return application/json, if found in the HttpContentCodec

fixes #3023 /claim #3023