6986400: Change Cookie to Cookie2 in 6980004 fix
Summary: fix error in previous fix for 6980004
Reviewed-by: chegar
--- 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);