[Modify] Polish it

master
sta 6 years ago
parent c86632e529
commit 32efdc25c3

@ -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.");
} }

Loading…
Cancel
Save