(#2517) - don't mutate host.headers
(#2517) - add test for mutated headers