aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/Net/HttpListenerRequest.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-01-31 21:11:13 -0500
committerGitHub <noreply@github.com>2019-01-31 21:11:13 -0500
commitc713824bf960b1c0d33dde051da6115f329cbca8 (patch)
tree048d7dfbd47da525cbc5fd7551ea3e27fa643e5e /SocketHttpListener/Net/HttpListenerRequest.cs
parentea851317e76bca0ae4c02547bf7ae017a5a45282 (diff)
parent1ea219bf3f5c0708c3afa5fa2d897ca5212b5e04 (diff)
Merge pull request #734 from Bond-009/culture
Fix more analyzer warnings
Diffstat (limited to 'SocketHttpListener/Net/HttpListenerRequest.cs')
-rw-r--r--SocketHttpListener/Net/HttpListenerRequest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/SocketHttpListener/Net/HttpListenerRequest.cs b/SocketHttpListener/Net/HttpListenerRequest.cs
index faeca78b2..667d58ea7 100644
--- a/SocketHttpListener/Net/HttpListenerRequest.cs
+++ b/SocketHttpListener/Net/HttpListenerRequest.cs
@@ -155,7 +155,7 @@ namespace SocketHttpListener.Net
}
else
{
- header = header.ToLower(CultureInfo.InvariantCulture);
+ header = header.ToLowerInvariant();
_keepAlive =
header.IndexOf("close", StringComparison.OrdinalIgnoreCase) < 0 ||
header.IndexOf("keep-alive", StringComparison.OrdinalIgnoreCase) >= 0;