[Modify] Polish it

This commit is contained in:
sta 2020-03-13 22:23:51 +09:00
parent c86632e529
commit 32efdc25c3

View File

@ -811,7 +811,10 @@ namespace WebSocketSharp.Net
private void checkRestricted (string name) private void checkRestricted (string name)
{ {
if (!_internallyUsed && isRestricted (name, true)) if (_internallyUsed)
return;
if (isRestricted (name, true))
throw new ArgumentException ("This header must be modified with the appropiate property."); throw new ArgumentException ("This header must be modified with the appropiate property.");
} }