]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[http] Fix HTTP SAN booting
authorMichael Brown <mcb30@ipxe.org>
Fri, 17 Aug 2012 17:00:40 +0000 (18:00 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 17 Aug 2012 17:00:40 +0000 (18:00 +0100)
commit8f7cd88af543b0b95e4f6663251ba9d392389b8b
tree800ff42d5dc0a613d6b565407a1220be14e1c42c
parent1170a36e6bb8091a638c815a17c2ec43715ad0a3
[http] Fix HTTP SAN booting

Commit 501527d ("[http] Treat any unexpected connection close as an
error") introduced a regression causing HTTP SAN booting to fail.  At
the end of the response to the HEAD request, the call to http_done()
would erroneously believe that the server had disconnected in the
middle of the HTTP headers.

Fix by treating the header block from a HEAD request as a trailer
block.  This fixes the problem and also simplifies the logic in
http_rx_header().

Reported-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp/httpcore.c