Probably more elegant code involves check the ```res.headers['Location']``` on ```Rex::Proto::Http::Rexponse```, prlly on the new ```redirect?``` method and don make```update_redirect_opts``` to parse the ```res.headers['Location']```, indeed prolly it shouldn't get the res, but just the new uri string... just an idea, as said.... just a draft :)