* HttpWebResponse.cs: don't fail if the cookie ends with a 'name' without a value. Fixes bug #76922. svn path=/trunk/mcs/; revision=54007
@@ -1,3 +1,8 @@
+2005-12-06 Gonzalo Paniagua Javier <[email protected]>
+
+ * HttpWebResponse.cs: don't fail if the cookie ends with a 'name'
+ without a value. Fixes bug #76922.
2005-11-28 Gonzalo Paniagua Javier <[email protected]>
* EndPointListener.cs:
@@ -452,7 +452,7 @@ namespace System.Net
return false;
name = GetCookieName ();
- if (header [pos] == '=') {
+ if (pos < header.Length && header [pos] == '=') {
pos++;
val = GetCookieValue ();
if (pos < length && header [pos] == ';')