Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #403: Fix cookie header warning #408

Closed

Conversation

andrei-bamboi
Copy link

@bmarwell bmarwell changed the title Fix cookie header warning Fix #403: Fix cookie header warning Jul 19, 2021
@@ -104,7 +104,7 @@ public LicenseDownloader( Proxy proxy, int connectTimeout, int socketTimeout, in
configBuilder.setProxy( new HttpHost( proxy.getHost(), proxy.getPort(), proxy.getProtocol() ) );
}

HttpClientBuilder clientBuilder = HttpClients.custom().setDefaultRequestConfig( configBuilder.build() );
HttpClientBuilder clientBuilder = HttpClients.custom().setCookieSpec(CookieSpecs.STANDARD).setDefaultRequestConfig( configBuilder.build() );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a missing import. Did you actually test-compile it locally?
Please run mvn verify locally.

@rmkellogg
Copy link

rmkellogg commented Aug 19, 2021

I think the addition should be at line 101 on the configBuilder variable.

final Builder configBuilder = RequestConfig.copy( RequestConfig.DEFAULT )
.setConnectTimeout( connectTimeout )
.setSocketTimeout( socketTimeout )
.setCookieSpec(CookieSpecs.STANDARD)
.setConnectionRequestTimeout( connectionRequestTimeout );

Plus add the import of org.apache.http.client.config.CookieSpecs. Not tested on my end to resolve issue though.

@slawekjaranowski
Copy link
Member

Suppressed by #472 - @andrei-bamboi thanks for efforts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants