[Modify] Move it

This commit is contained in:
sta 2020-02-12 19:46:19 +09:00
parent 3334a53336
commit 7f6410afff

View File

@ -141,6 +141,8 @@ namespace WebSocketSharp.Net
if (!flushHeaders (closing))
return false;
_response.HeadersSent = true;
_sendChunked = _response.SendChunked;
_writeBody = _sendChunked ? _writeChunked : _write;
}
@ -214,8 +216,6 @@ namespace WebSocketSharp.Net
}
_response.CloseConnection = headers["Connection"] == "close";
_response.HeadersSent = true;
return true;
}