[Modify] Polish it

This commit is contained in:
sta 2020-02-12 19:49:44 +09:00
parent 7f6410afff
commit 11bbb6e2f1

View File

@ -138,7 +138,7 @@ namespace WebSocketSharp.Net
private bool flush (bool closing) private bool flush (bool closing)
{ {
if (!_response.HeadersSent) { if (!_response.HeadersSent) {
if (!flushHeaders (closing)) if (!flushHeaders ())
return false; return false;
_response.HeadersSent = true; _response.HeadersSent = true;
@ -188,7 +188,7 @@ namespace WebSocketSharp.Net
_bodyBuffer = null; _bodyBuffer = null;
} }
private bool flushHeaders (bool closing) private bool flushHeaders ()
{ {
if (!_response.SendChunked) { if (!_response.SendChunked) {
if (_response.ContentLength64 != _bodyBuffer.Length) if (_response.ContentLength64 != _bodyBuffer.Length)