we really need a functional test that exercises the `trim_headers` mode (#1190) this would be useful to make sure that it continues to work after merging changes from upstream, or any other fixes/features