diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index 1d8a9f3c..4a35ca03 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -1716,7 +1716,7 @@ namespace WebSocketSharp.Net var headerType = getHeaderType (name); checkRestricted (name, headerType); - checkAllowed (name); + checkAllowed (headerType); base.Remove (name); }