diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-11-28 00:42:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-28 00:42:25 -0500 |
| commit | f92e245dfffbc3fdf020a7fcc71faf10a9b7e305 (patch) | |
| tree | 726f0145b9fcda6c671440f2261e0222359090fd /ServiceStack/HttpResponseExtensionsInternal.cs | |
| parent | 79eabe1e5888c6866c946276a367ee5c25620763 (diff) | |
| parent | 56b24da15165ef4c4b7107b673bab5b191d76afe (diff) | |
Merge pull request #2315 from MediaBrowser/dev
Dev
Diffstat (limited to 'ServiceStack/HttpResponseExtensionsInternal.cs')
| -rw-r--r-- | ServiceStack/HttpResponseExtensionsInternal.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ServiceStack/HttpResponseExtensionsInternal.cs b/ServiceStack/HttpResponseExtensionsInternal.cs index f78647721..feb18081a 100644 --- a/ServiceStack/HttpResponseExtensionsInternal.cs +++ b/ServiceStack/HttpResponseExtensionsInternal.cs @@ -130,7 +130,7 @@ namespace ServiceStack { foreach (var responseHeaders in responseOptions.Headers) { - if (responseHeaders.Key == "Content-Length") + if (string.Equals(responseHeaders.Key, "Content-Length", StringComparison.OrdinalIgnoreCase)) { response.SetContentLength(long.Parse(responseHeaders.Value)); continue; |
