From 0611e8a276e4ee7a0be5b410f346ac2c55dc1945 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 18 Feb 2019 20:20:36 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Net/Cookie.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index 8769804b..9a83f355 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -69,6 +69,7 @@ namespace WebSocketSharp.Net private Uri _commentUri; private bool _discard; private string _domain; + private static readonly int[] _emptyPorts; private DateTime _expires; private bool _httpOnly; private string _name; @@ -88,6 +89,7 @@ namespace WebSocketSharp.Net static Cookie () { + _emptyPorts = new int[0]; _reservedCharsForName = new[] { ' ', '=', ';', ',', '\n', '\r', '\t' }; _reservedCharsForValue = new[] { ';', ',' }; }