Fix cookie for java download

Change-Id: Ieffcce0a0037c4c0fd156e401bf3d370e2fd74f3
Closes-bug: #1293402