changeset 3056:11a08845b979

6986400: Change Cookie to Cookie2 in 6980004 fix Summary: fix error in previous fix for 6980004 Reviewed-by: chegar
author michaelm
date Thu, 23 Sep 2010 03:22:13 -0700
parents e0806d924a42
children 0f510337dadb
files src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java	Thu Sep 16 09:22:51 2010 -0700
+++ b/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);