HttpClient in .netcore is automatically adding a space in header
问题 I'm using HTTPClient in .netcore but I'm facing an issue when I add a custom accept header. var client = new HttpClient { Timeout = new TimeSpan(0, 5, 0)}; client.DefaultRequestHeaders.Clear(); client.DefaultRequestHeaders.TryAddWithoutValidation("Accept", "application/vnd.pagseguro.com.br.v3+json;charset=ISO-8859-1"); But after this, what I see is that a space has been automaticaly added, resulting in " application/vnd.pagseguro.com.br.v3+json; charset=ISO-8859-1 ". That space is causing me