Skip to content

Commit 818579c

Browse files
committed
remove unsed cookie
1 parent ba05246 commit 818579c

File tree

1 file changed

+0
-4
lines changed
  • imagetool/src/main/java/com/oracle/weblogic/imagetool/util

1 file changed

+0
-4
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/util/HttpUtil.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import org.apache.http.impl.client.BasicCredentialsProvider;
3838
import org.apache.http.impl.client.CloseableHttpClient;
3939
import org.apache.http.impl.client.HttpClientBuilder;
40-
import org.apache.http.impl.cookie.BasicClientCookie;
4140
import org.w3c.dom.Document;
4241
import org.xml.sax.InputSource;
4342
import org.xml.sax.SAXException;
@@ -139,9 +138,6 @@ public static HttpClient getOraClient(String userId, String password) {
139138
CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
140139

141140
if (userId != null && password != null) {
142-
BasicClientCookie cc = new BasicClientCookie("oraclelicense", "a");
143-
cc.setDomain("edelivery.oracle.com");
144-
cookieStore.addCookie(cc);
145141
credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(
146142
userId, password));
147143
}

0 commit comments

Comments
 (0)