I think that the use of content-type with lower case instead of Content-Type could lead to problems
alex1712 opened this issue · comments
Alex commented
I think that would not find the content type if the header is written with capital letters, therefor could lead into problems.
Jon Hoffman commented
the underlying map is case-insensitive, so this is ok
Alex commented
Sorry, maybe I am wrong but if I try this code the result is None:
val headers: Map[String, String] = Map( "Content-Type" -> "application/json" ) headers.get("content-type")
If you are sure just ignore my comment.
Thanks