mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-09 12:51:45 -04:00
Some status-codes should never have a body except for a single trailing blank line. If we don't handle these, then we end up with a dirty connection in our connection pool: 1 - read the header, but not the body 2 - put the connection back in the pool 3 - try to read the header, but actually get the body from #1 WPT /fetch/api/basic/response-null-body.any.html exercises this path and is flaky (because it depends whether the request goes back out on a keep-alive connection)..but for a given run,you'll almost always get 1-3 failures. This commit processes the request, but tells libcurl not to re-use the connection.