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>tags/v1.20.1
|
|
||
260 |
|
260 |
|
261 |
|
261 |
|
262 |
|
262 |
|
263 |
|
|
|
264 |
|
|
|
|
263 |
|
|
|
264 |
|
|
265 |
|
265 |
|
266 |
|
266 |
|
267 |
|
267 |
|
|
|
||
362 |
|
362 |
|
363 |
|
363 |
|
364 |
|
364 |
|
365 |
|
|
|
366 |
|
|
|
|
365 |
|
|
|
366 |
|
|
|
367 |
|
|
367 |
|
368 |
|
368 |
|
369 |
|
369 |
|
370 |
|
|
|
||
697 |
|
698 |
|
698 |
|
699 |
|
699 |
|
700 |
|
700 |
|
|
|
701 |
|
|
|
|
701 |
|
|
702 |
|
702 |
|
703 |
|
703 |
|
704 |
|
704 |
|