[Modify] Add it

This commit is contained in:
sta 2020-04-02 20:09:10 +09:00
parent 8af604b45d
commit 4cd5b328b9

View File

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