Skip to content

Commit

Permalink
[MRESOLVER-574] Use standard cookie spec (#523)
Browse files Browse the repository at this point in the history
As default one is not standard (w00t?)

---

https://issues.apache.org/jira/browse/MRESOLVER-574
  • Loading branch information
cstamas authored Jul 1, 2024
1 parent 6288780 commit ca35d0c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -277,6 +278,7 @@ final class HttpTransporter extends AbstractTransporter {
.setConnectTimeout(connectTimeout)
.setConnectionRequestTimeout(connectTimeout)
.setLocalAddress(getBindAddress(session, repository))
.setCookieSpec(CookieSpecs.STANDARD)
.setSocketTimeout(requestTimeout)
.build();

Expand Down

0 comments on commit ca35d0c

Please sign in to comment.