lib/url_canonicalize/request.rb in url_canonicalize-0.0.4 vs lib/url_canonicalize/request.rb in url_canonicalize-0.0.5
- old
+ new
@@ -48,10 +48,10 @@
def handle_redirection
case response
when Net::HTTPFound, Net::HTTPMovedTemporarily, Net::HTTPTemporaryRedirect
self.http_method = :get
- look_for_canonical
+ handle_success
else
URLCanonicalize::Response::Redirect.new(response['location'])
end
end