Duplicated value in content-type headers

Hello all,

I’m working on a Phoenix application, and for some reason, when some sources send a request, the content-type is being duplicated. For example, if it’s sent like this: {"content-type", "application/json"}, it arrives in endpoint.ex like this: {"content-type", "application/json, application/json"}. And that happens regardless of the value of content-type. This problem doesn’t happen for other headers. I don’t expect anyone to solve this problem, but I’m wondering if anyone has had a similuar issue with Phoenix?

All the best,


I haven’t had this happen but here are places you could be doubling up:

  • Phoenix endpoint configuration in config/config.exs.

  • Phoenix router configuration in lib/my_app_web/router.ex.

  • Phoenix plugs

  • Dependencies

1 Like