Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
<6 bytes HTTP responses "vanish" #2420
I did this
The zeros in all columns is what's notable. The server sent 5 bytes. Adding
I expected the following
curl has support for "HTTP/0.9" which is header-less and is just a response-body until connection close. But since curl doesn't know what HTTP version that comes, it buffers the data to check the first header line. This small amount of data never gets checked since the code wants >5 bytes before it checks.
Since it never qualifies as a header, it should probably be considered a body and get delivered as such when it reaches the end of the transfer without confirming it to be a header.
git master, but this is ancient bug. Presumably this is not an actual problem to many users.
On 19 Apr 2018, at 21:21, Daniel Stenberg ***@***.***> wrote: I would say that most users probably don't even think of HTTP/0.9 and will be surprised when curl would handle such responses. While --http0.9 seems a bit weird to add at this point, I still think that's the best way forward for this…
I think so too. Unless you’re already on it, I can take a stab at it for the next window.