[Modify] Polish it

This commit is contained in:
sta 2018-01-08 16:18:36 +09:00
parent 81afcde357
commit 40a4cdc289

View File

@ -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;