# File lib/rfuzz/client.rb, line 418 418: def redirect(method, resp, *args) 419: @redirect.times do 420: break if resp.http_status.index("3") != 0 421: 422: host = encode_host(@host,@port) 423: location = resp[LOCATION] 424: 425: if location.index(host) == 0 426: # begins with the host so strip that off 427: location = location[host.length .. -1] 428: end 429: 430: @notifier.redirect(:begins) if @notifier 431: resp = self.send(method, location, *args) 432: @notifier.redirect(:ends) if @notifier 433: end 434: 435: return resp 436: end