Handle redirection when downloading.