Luv Kumar
10/23/2026, 7:30 AMmergeHeaders() 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?Aleksei Tirman [JB]
10/26/2026, 7:06 AM