[Modify] Polish it
This commit is contained in:
parent
7f6410afff
commit
11bbb6e2f1
@ -138,7 +138,7 @@ namespace WebSocketSharp.Net
|
||||
private bool flush (bool closing)
|
||||
{
|
||||
if (!_response.HeadersSent) {
|
||||
if (!flushHeaders (closing))
|
||||
if (!flushHeaders ())
|
||||
return false;
|
||||
|
||||
_response.HeadersSent = true;
|
||||
@ -188,7 +188,7 @@ namespace WebSocketSharp.Net
|
||||
_bodyBuffer = null;
|
||||
}
|
||||
|
||||
private bool flushHeaders (bool closing)
|
||||
private bool flushHeaders ()
|
||||
{
|
||||
if (!_response.SendChunked) {
|
||||
if (_response.ContentLength64 != _bodyBuffer.Length)
|
||||
|
Loading…
Reference in New Issue
Block a user