The Free Software Media System - Server Backend & API
update string compare
Luke Pulverentif167777c7b48
diff --git a/SocketHttpListener.Portable/Net/HttpConnection.cs b/SocketHttpListener.Portable/Net/HttpConnection.csindex bc4286dc8c..3baffd258e 100644--- a/SocketHttpListener.Portable/Net/HttpConnection.cs+++ b/SocketHttpListener.Portable/Net/HttpConnection.cs@@ -209,7 +209,7 @@ namespace SocketHttpListener.Net// TODO: can we get this stream before reading the input?if (o_stream == null){- context.Response.DetermineIfChunked();+ //context.Response.DetermineIfChunked();if (context.Response.SendChunked || isExpect100Continue || context.Request.IsWebSocketRequest || true){@@ -508,7 +508,7 @@ namespace SocketHttpListener.Net{force_close |= !context.Request.KeepAlive;if (!force_close)- force_close = (context.Response.Headers["connection"] == "close");+ force_close = (string.Equals(context.Response.Headers["connection"], "close", StringComparison.OrdinalIgnoreCase));/*if (!force_close) {// bool conn_close = (status_code == 400 || status_code == 408 || status_code == 411 ||