Fix following redirects when location header values are relative urls