We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5644c25 commit 6880e58Copy full SHA for 6880e58
src/RestSharp/KnownHeaders.cs
@@ -42,7 +42,7 @@ public static class KnownHeaders {
42
LastModified
43
};
44
45
- static readonly HashSet<string> ContentHeadersHash = new(ContentHeaders.Select(x => x.ToLower()));
+ static readonly HashSet<string> ContentHeadersHash = new(ContentHeaders, StringComparer.InvariantCultureIgnoreCase);
46
47
- internal static bool IsContentHeader(string key) => ContentHeadersHash.Contains(key.ToLower());
+ internal static bool IsContentHeader(string key) => ContentHeadersHash.Contains(key);
48
}
0 commit comments