fix redirection content-type