Skip to content

The Free Software Media System - Server Backend & API

update HttpListenerResponse

Luke Pulverentifdb67f178401
diff --git a/SocketHttpListener.Portable/Net/HttpListenerResponse.cs b/SocketHttpListener.Portable/Net/HttpListenerResponse.cs
index fb3bc2bdb3..880473c0a2 100644
--- a/SocketHttpListener.Portable/Net/HttpListenerResponse.cs
+++ b/SocketHttpListener.Portable/Net/HttpListenerResponse.cs
@@ -413,8 +413,8 @@ namespace SocketHttpListener.Net
* HttpStatusCode.InternalServerError 500
* HttpStatusCode.ServiceUnavailable 503
*/
- bool conn_close = (status_code == 400 || status_code == 408 || status_code == 411 ||
- status_code == 413 || status_code == 414 || status_code == 500 ||
+ bool conn_close = (status_code == 408 || status_code == 411 ||
+ status_code == 413 || status_code == 414 ||
status_code == 503);
if (conn_close == false)