6986400: Change Cookie to Cookie2 in 6980004 fix
authormichaelm
Thu, 23 Sep 2010 03:22:13 -0700
changeset 6877 80aa31f1b638
parent 6876 13fdbd146659
child 6878 bab0deb709c4
6986400: Change Cookie to Cookie2 in 6980004 fix Summary: fix error in previous fix for 6980004 Reviewed-by: chegar
jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
--- a/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java	Thu Sep 16 09:22:51 2010 -0700
+++ b/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java	Thu Sep 23 03:22:13 2010 -0700
@@ -1215,7 +1215,7 @@
             }
             if (userCookies2 != null) {
                 int k;
-                if ((k = requests.getKey("Cookie")) != -1)
+                if ((k = requests.getKey("Cookie2")) != -1)
                     requests.set("Cookie2", requests.getValue(k) + ";" + userCookies2);
                 else
                     requests.set("Cookie2", userCookies2);