[Modify] Throw an exception
This commit is contained in:
parent
0c39408b6f
commit
fffe325d44
@ -342,6 +342,11 @@ namespace WebSocketSharp.Net
|
|||||||
if (_disposed)
|
if (_disposed)
|
||||||
throw new ObjectDisposedException (GetType ().ToString ());
|
throw new ObjectDisposedException (GetType ().ToString ());
|
||||||
|
|
||||||
|
if (_headersSent) {
|
||||||
|
var msg = "The response is already being sent.";
|
||||||
|
throw new InvalidOperationException (msg);
|
||||||
|
}
|
||||||
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
_contentType = null;
|
_contentType = null;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user