Skip to content

Commit

Permalink
Suppressing warning about wrong cookie format while downloading buck
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 18, 2017
1 parent c31090a commit 4e792ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rake-tasks/buck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def self.download
require "third_party/java/commons-logging/commons-logging-1.2"
require "third_party/java/commons-io/commons-io-2.6"

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()
.setRedirectStrategy(org.apache.http.impl.client.LaxRedirectStrategy.new())
.setDefaultRequestConfig(org.apache.http.client.config.RequestConfig.custom()
.setCookieSpec("standard").build())
.build()
httpget = org.apache.http.client.methods.HttpGet.new(url)
response = httpclient.execute(httpget)
entity = response.getEntity()
Expand Down

0 comments on commit 4e792ec

Please sign in to comment.