[Modify] Polish it

This commit is contained in:
sta 2020-05-18 19:29:20 +09:00
parent 9871c90659
commit 98f7f00b59

View File

@ -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);