hayesdavis-grackle 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/grackle.gemspec +1 -1
- data/lib/grackle.rb +1 -1
- data/lib/grackle/transport.rb +1 -1
- metadata +1 -1
data/grackle.gemspec
CHANGED
data/lib/grackle.rb
CHANGED
data/lib/grackle/transport.rb
CHANGED
@@ -69,7 +69,7 @@ module Grackle
|
|
69
69
|
res = http.request(req)
|
70
70
|
dump_response(res) if debug
|
71
71
|
redirect_limit = options[:redirect_limit] || DEFAULT_REDIRECT_LIMIT
|
72
|
-
if res.code.to_s =~ /^
|
72
|
+
if res.code.to_s =~ /^3\d\d$/ && redirect_limit > 0 && res['location']
|
73
73
|
execute_request(method,URI.parse(res['location']),options.merge(:redirect_limit=>redirect_limit-1))
|
74
74
|
else
|
75
75
|
Response.new(method,url.to_s,res.code.to_i,res.body)
|