From 56b24da15165ef4c4b7107b673bab5b191d76afe Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 28 Nov 2016 00:38:41 -0500 Subject: update response stream parsing --- ServiceStack/HttpResponseExtensionsInternal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ServiceStack/HttpResponseExtensionsInternal.cs') 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; -- cgit v1.2.3