lib/hwacha/config.rb in hwacha-1.0.1 vs lib/hwacha/config.rb in hwacha-1.0.2

- old
+ new

@@ -18,10 +18,12 @@ return {} if max_concurrent_requests.nil? { :max_concurrency => max_concurrent_requests } end def follow_redirects_option - return { :followlocation => false } if follow_redirects.nil? - { :followlocation => !!follow_redirects } + followlocation = false + followlocation = !!ricochet unless ricochet.nil? + followlocation = !!follow_redirects unless follow_redirects.nil? + { :followlocation => followlocation } end end end