Recursively add user agent on redirects

Hi there,

I faced some issues related to a redirect page that required a user agent to be set on the next url.
Due to the target rewriting, the user agent was reset on the redirect.
Now they are set again before sending the new request.