mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
An uncork() flushed a head writeHead stored even when nothing was written while corked. Node keeps the stored head until write(), end() or flushHeaders(), so the flush now sends it only when a write() or flushHeaders() ran while corked. The http-held-head fixture covers the three cases.