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