From 40a4cdc2898223c077d51da71c75b73d2df01184 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 8 Jan 2018 16:18:36 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpListenerRequest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpListenerRequest.cs b/websocket-sharp/Net/HttpListenerRequest.cs index 59df8889..b076c50e 100644 --- a/websocket-sharp/Net/HttpListenerRequest.cs +++ b/websocket-sharp/Net/HttpListenerRequest.cs @@ -590,7 +590,7 @@ namespace WebSocketSharp.Net _chunked = true; } - if (!_chunked && !_contentLengthSet) { + if (_contentLength == -1 && !_chunked) { if (_method == "POST" || _method == "PUT") { _context.ErrorMessage = String.Empty; _context.ErrorStatus = 411;