From 4b0a4a54a19c672d104905aee3efb8ecf4c98dc4 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Mon, 1 Jul 2024 13:55:35 +0200 Subject: [PATCH] [MRESOLVER-574] Use standard cookie spec As default one is not standard (w00t?) --- https://issues.apache.org/jira/browse/MRESOLVER-574 --- .../java/org/eclipse/aether/transport/http/HttpTransporter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java b/maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java index 86882a7f4..d681e199c 100644 --- a/maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java +++ b/maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java @@ -54,6 +54,7 @@ import org.apache.http.client.HttpResponseException; import org.apache.http.client.ServiceUnavailableRetryStrategy; import org.apache.http.client.config.AuthSchemes; +import org.apache.http.client.config.CookieSpecs; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; @@ -277,6 +278,7 @@ final class HttpTransporter extends AbstractTransporter { .setConnectTimeout(connectTimeout) .setConnectionRequestTimeout(connectTimeout) .setLocalAddress(getBindAddress(session, repository)) + .setCookieSpec(CookieSpecs.STANDARD) .setSocketTimeout(requestTimeout) .build();