update response stream parsing

This commit is contained in:
Luke Pulverenti
2016-11-28 00:38:41 -05:00
parent 4a548f3081
commit 56b24da151
7 changed files with 32 additions and 9 deletions

View File

@@ -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;