The code to strip out whitespace at the beginning and end of H1 header values is a bit too aggressive. It strips out spaces at the beginning and end of each chunk provided by the H1 parser to ConnectionImpl::onHeaderValue. Those chunks roughly map to either buffer slices or readv boundaries.
Sample request that reproduces the issue:
GET / HTTP/1.1
host: foo.com
k: v <32kb of spaces> v
Proxied request:
GET / HTTP/1.1
host: foo.com
k: vv