[Modify] Polish it
This commit is contained in:
parent
203989148f
commit
7ca0f85515
@ -676,8 +676,12 @@ namespace WebSocketSharp.Net
|
||||
headers.InternalSet ("Server", "websocket-sharp/1.0", true);
|
||||
|
||||
var prov = CultureInfo.InvariantCulture;
|
||||
if (headers["Date"] == null)
|
||||
headers.InternalSet ("Date", DateTime.UtcNow.ToString ("r", prov), true);
|
||||
|
||||
if (headers["Date"] == null) {
|
||||
headers.InternalSet (
|
||||
"Date", DateTime.UtcNow.ToString ("r", prov), true
|
||||
);
|
||||
}
|
||||
|
||||
if (!_sendChunked)
|
||||
headers.InternalSet ("Content-Length", _contentLength.ToString (prov), true);
|
||||
|
Loading…
Reference in New Issue
Block a user