diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-01-31 21:11:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-31 21:11:13 -0500 |
| commit | c713824bf960b1c0d33dde051da6115f329cbca8 (patch) | |
| tree | 048d7dfbd47da525cbc5fd7551ea3e27fa643e5e /SocketHttpListener/Net/HttpListenerRequest.cs | |
| parent | ea851317e76bca0ae4c02547bf7ae017a5a45282 (diff) | |
| parent | 1ea219bf3f5c0708c3afa5fa2d897ca5212b5e04 (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.cs | 2 |
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; |
