mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 18:24:19 -04:00
update string compare
This commit is contained in:
parent
a447fd291a
commit
f167777c7b
@ -209,7 +209,7 @@ namespace SocketHttpListener.Net
|
|||||||
// TODO: can we get this stream before reading the input?
|
// TODO: can we get this stream before reading the input?
|
||||||
if (o_stream == null)
|
if (o_stream == null)
|
||||||
{
|
{
|
||||||
context.Response.DetermineIfChunked();
|
//context.Response.DetermineIfChunked();
|
||||||
|
|
||||||
if (context.Response.SendChunked || isExpect100Continue || context.Request.IsWebSocketRequest || true)
|
if (context.Response.SendChunked || isExpect100Continue || context.Request.IsWebSocketRequest || true)
|
||||||
{
|
{
|
||||||
@ -508,7 +508,7 @@ namespace SocketHttpListener.Net
|
|||||||
{
|
{
|
||||||
force_close |= !context.Request.KeepAlive;
|
force_close |= !context.Request.KeepAlive;
|
||||||
if (!force_close)
|
if (!force_close)
|
||||||
force_close = (context.Response.Headers["connection"] == "close");
|
force_close = (string.Equals(context.Response.Headers["connection"], "close", StringComparison.OrdinalIgnoreCase));
|
||||||
/*
|
/*
|
||||||
if (!force_close) {
|
if (!force_close) {
|
||||||
// bool conn_close = (status_code == 400 || status_code == 408 || status_code == 411 ||
|
// bool conn_close = (status_code == 400 || status_code == 408 || status_code == 411 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user