Fixes #20 Unable to handle permanent redirection, for redirects that have relative urls