Hi all, I think I found a bug in `mergeHeaders()` ...
# ktor
l
Hi all, I think I found a bug in
mergeHeaders()
in Ktor. This check uses a case-sensitive comparison. If a caller supplies
content-type
in lowercase, the loop can send it, and the code below adds
Content-Type
again. Some servers reject these duplicate headers. HTTP header names are case insensitive. Should this check and the adjacent
Content-Length
check use
ignoreCase = true
? Or am I missing something?
a
Thank you. I've filed an issue.
❤️ 1