URL: <https://savannah.gnu.org/bugs/?66029>
Summary: UEFI HTTP Boot fails when web server is running behind HAProxy (2.06, probably older too) Group: GNU GRUB Submitter: dnikov_20i Submitted: Fri 26 Jul 2024 09:56:54 AM UTC Category: Network Severity: Major Priority: 5 - Normal Item Group: Feature Request Status: None Privacy: Public Assigned to: None Originator Name: Dimitar Nikov Originator Email: Open/Closed: Open Discussion Lock: Any Release: other Release: Reproducibility: Every Time Planned Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Fri 26 Jul 2024 09:56:54 AM UTC By: Dimitar Nikov <dnikov_20i> UEFI HTTP Boot fails when running a web server behind HAProxy (or other proxy) to provide initial ramdisk and kernel. HAproxy (and probably other proxies) is changing HTTP response headers to lowercase. On the other hand, grub2 uses a case-sensitive comparison for the Content-Lenght header leading to prematurely closing the connection and leaving the client with a partially downloaded initrd/kernel. A possible fix for this issue is to use a case-insensitive comparison for that header (or any headers where necessary). A simple fix is available in the attached path file. Thank you. Best regards, Dimitar Nikov _______________________________________________________ File Attachments: ------------------------------------------------------- Name: grub2-http-client-lowercase-headers.patch Size: 631B <https://file.savannah.gnu.org/file/grub2-http-client-lowercase-headers.patch?file_id=56312> AGPL NOTICE These attachments are served by Savane. You can download the corresponding source code of Savane at https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-8484e1fbf03b4be857b50ee2cbb06e3663429e34.tar.gz _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66029> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature