dotnet/runtime#116688: SocketsHttpHandler should replace received new lines in headers with spaces by MihaZupan
[Tool] Searching for SocketsHttpHandler replace new lines headers, HTTP/2 HTTP/3 headers CR LF NUL, HttpClient response headers invalid characters, RFC9110 header field values, line folds new lines headers (IncludeOpen=True, IncludeClosed=True, IncludeIssues=True, IncludePullRequests=True, Repository=dotnet/runtime)
[Tool] Found 120 issues, 52 comments, 120 returned results (21127 ms)
Triage for dotnet/runtime#116688.
Here are the most relevant related issues and pull requests to issue #116688 ("SocketsHttpHandler should replace received new lines in headers with spaces"):
1. PR #116323 (June 2025) - Fix various HTTP header parsing issues
2. Issue #29927 (June 2019) - Ignore invalid response header in HttpClient request
3. Issue #67199 (March 2022) - HttpHeaders should not remove invalid values during validating access
HttpHeaderscurrently removes header entries containing new lines or only whitespace during validation, which can cause side effects and inconsistencies. The proposal is to stop implicitly removing such entries, which would allow users to observe new-line characters if they were added without validation.4. Issue #63808 (January 2022) - SocketsHttpHandler does not preserve request header format
5. Issue #38711 (July 2020) - API Proposal: Http header value Encoding selection
6. PR #39468 (July 2020) - Implement Header encoding selectors on SocketsHttpHandler
7. Issue #77001 (October 2022) - SocketsHttpHandler is inconsistent with header value trimming on HTTP/1.1
8. Issue #28869 (March 2019) - Consider adding folded trailing header support
9. Issue #116634 (June 2025) - SocketsHttpHandler should reject NUL in header values
Summary
If you need more detail on any specific issue or PR, let me know!