Skip to content

Instantly share code, notes, and snippets.

@hirose31
Last active August 29, 2015 14:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirose31/7f934f5e21917200f056 to your computer and use it in GitHub Desktop.
Save hirose31/7f934f5e21917200f056 to your computer and use it in GitHub Desktop.
diff --git a/lib/berkshelf/community_rest.rb b/lib/berkshelf/community_rest.rb
index 42c51d2..b791f23 100644
--- a/lib/berkshelf/community_rest.rb
+++ b/lib/berkshelf/community_rest.rb
@@ -75,6 +75,7 @@ def initialize(uri = V1_API, options = {})
options[:builder] ||= Faraday::RackBuilder.new do |b|
b.response :parse_json
b.response :gzip
+ b.response :follow_redirects
b.request :retry,
max: @retries,
interval: @retry_interval,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment