process request end-of-file should happen after all the redirects