diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index f1aeb5d1..0da959d4 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -1484,6 +1484,7 @@ namespace WebSocketSharp.Net public override string[] GetValues (string name) { var vals = base.GetValues (name); + return vals != null && vals.Length > 0 ? vals : null; }