Fix resending headers following redirect