[Modify] Polish it
This commit is contained in:
parent
365022fa3d
commit
791dcfe186
@ -447,7 +447,14 @@ namespace WebSocketSharp.Net
|
||||
}
|
||||
|
||||
set {
|
||||
checkDisposedOrHeadersSent ();
|
||||
if (_disposed)
|
||||
throw new ObjectDisposedException (GetType ().ToString ());
|
||||
|
||||
if (_headersSent) {
|
||||
var msg = "The response is already being sent.";
|
||||
throw new InvalidOperationException (msg);
|
||||
}
|
||||
|
||||
_sendChunked = value;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user