Skip to content
Browse files

Use only Excon.new

  • Loading branch information...
1 parent d099ea0 commit fbf3b6ef5a152647c9120877b958d2d968ad6169 @copiousfreetime committed Mar 9, 2013
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/stickler/repository/remote.rb
View
7 lib/stickler/repository/remote.rb
@@ -281,10 +281,9 @@ def resource_request( resource, params = {} )
# HEAD request. Only follow a few times though.
raise redirect unless [ :get, :head ].include?( redirect.request[:method] )
raise redirect if trys > 5
- resource = Excon::Connection.new( redirect.response.headers['Location'],
- { :headers => resource.data[:headers],
- :query => resource.data[:headers],
- :method => resource.data[:method] } )
+ resource = Excon.new( redirect.response.headers['Location'],
+ { :headers => resource.data[:headers],
+ :method => resource.data[:method] } )
retry
end
end

0 comments on commit fbf3b6e

Please sign in to comment.
Something went wrong with that request. Please try again.