Skip to content

Commit 77f3b46

Browse files
authored
Merge pull request #79 from aidenpearce79/master
Fix System.IndexOutOfRangeException
2 parents 4923986 + 0ea2056 commit 77f3b46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Leaf.xNet/~Http/CookieStorage.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ public void Set(Uri requestAddress, string rawCookie)
156156

157157
// Получаем ключ и значение самой Cookie
158158
var keyValue = arguments[0].Split(new[] {'='}, 2);
159+
if (keyValue.Length <= 1)
160+
return;
161+
159162
keyValue[0] = keyValue[0].Trim();
160163
keyValue[1] = keyValue[1].Trim();
161164

0 commit comments

Comments
 (0)