[Modify] Polish it
This commit is contained in:
@@ -792,7 +792,7 @@ namespace WebSocketSharp.Net
|
|||||||
if (headerType == HttpHeaderType.Unspecified)
|
if (headerType == HttpHeaderType.Unspecified)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (_state != headerType) {
|
if (headerType != _state) {
|
||||||
var msg = "This collection does not allow the header.";
|
var msg = "This collection does not allow the header.";
|
||||||
|
|
||||||
throw new InvalidOperationException (msg);
|
throw new InvalidOperationException (msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user