tee_input: do not clobber trailer buffer on partial uploads
commit0ab37e1f493c792e7c21086116adff1a63bf3ff8
authorEric Wong <normalperson@yhbt.net>
Thu, 5 Nov 2009 07:02:02 +0000 (4 23:02 -0800)
committerEric Wong <normalperson@yhbt.net>
Thu, 5 Nov 2009 07:02:02 +0000 (4 23:02 -0800)
treeed656d243543faa8d6e8fcfca3f896f49cbbd307
parenta45c6246933f7eb05fafbfcdc233a42e64947acb
tee_input: do not clobber trailer buffer on partial uploads

Found in Rainbows! testing.  Reusing the buffer when finalizing
input for headers could be problematic because it would lead
to the @buf2 instance variable being clobbered; allowing the
trailers to "leak" into the body.
lib/unicorn/tee_input.rb