mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-25 23:32:08 -10:00
Apply same header response trimming done by WinHttpHandler. Fixes dotnet/corefx#4187 (At some point I'd like to go through and replace all Substring(...).Trim() calls with a more efficient SubstringTrim(...) that doesn't allocate an intermediate string. But in the meantime, this addresses the problem.) Commit migrated from https://github.com/dotnet/corefx/commit/a5053a14559ea30d224bf9f74892c86435d9166b