Fixing missing header in 301 and 302 redirects