Fix duplicate Content-Length headers with pass and stream

Fixes: #1272

Patch by: ehocdet