Skip to content

Commit 4e792ec

Browse files
committed
Suppressing warning about wrong cookie format while downloading buck
1 parent c31090a commit 4e792ec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

rake-tasks/buck.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ def self.download
3232
require "third_party/java/commons-logging/commons-logging-1.2"
3333
require "third_party/java/commons-io/commons-io-2.6"
3434

35-
httpclient = org.apache.http.impl.client.HttpClients.custom().setRedirectStrategy(org.apache.http.impl.client.LaxRedirectStrategy.new()).build()
35+
httpclient = org.apache.http.impl.client.HttpClients.custom()
36+
.setRedirectStrategy(org.apache.http.impl.client.LaxRedirectStrategy.new())
37+
.setDefaultRequestConfig(org.apache.http.client.config.RequestConfig.custom()
38+
.setCookieSpec("standard").build())
39+
.build()
3640
httpget = org.apache.http.client.methods.HttpGet.new(url)
3741
response = httpclient.execute(httpget)
3842
entity = response.getEntity()

0 commit comments

Comments
 (0)