Pass through redirects, fix headers and improve logging