diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index 5908ac7c..5fa79b7c 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -949,6 +949,15 @@ namespace WebSocketSharp.Net return null; } + private static string getHeaderName (string key) + { + HttpHeaderInfo headerInfo; + + return _headers.TryGetValue (key, out headerInfo) + ? headerInfo.Name + : null; + } + private static bool isRestricted (string name, bool response) { var headerInfo = getHeaderInfo (name);