There was an error while loading. Please reload this page.
1 parent c31090a commit 4e792ecCopy full SHA for 4e792ec
1 file changed
rake-tasks/buck.rb
@@ -32,7 +32,11 @@ def self.download
32
require "third_party/java/commons-logging/commons-logging-1.2"
33
require "third_party/java/commons-io/commons-io-2.6"
34
35
- httpclient = org.apache.http.impl.client.HttpClients.custom().setRedirectStrategy(org.apache.http.impl.client.LaxRedirectStrategy.new()).build()
+ 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()
40
httpget = org.apache.http.client.methods.HttpGet.new(url)
41
response = httpclient.execute(httpget)
42
entity = response.getEntity()
0 commit comments