From ef22ba2e568e820750fa977683fa2c862be35eb4 Mon Sep 17 00:00:00 2001 From: Guillaume Boucherie Date: Wed, 2 Apr 2014 14:30:20 +0200 Subject: [PATCH] [JENKINS-22462] update cookie name and value --- core/src/main/java/hudson/tools/JDKInstaller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/tools/JDKInstaller.java b/core/src/main/java/hudson/tools/JDKInstaller.java index 66a4f10fd69e..8966a7bcb4c0 100644 --- a/core/src/main/java/hudson/tools/JDKInstaller.java +++ b/core/src/main/java/hudson/tools/JDKInstaller.java @@ -388,7 +388,7 @@ public URL locate(TaskListener log, Platform platform, CPU cpu) throws IOExcepti int authCount=0, totalPageCount=0; // counters for avoiding infinite loop HttpMethodBase m = new GetMethod(primary.filepath); - hc.getState().addCookie(new Cookie(".oracle.com","gpw_e24",".", "/", -1, false)); + hc.getState().addCookie(new Cookie(".oracle.com","oraclelicense","accept-securebackup-cookie", "/", -1, false)); try { while (true) { if (totalPageCount++>16) // looping too much