[PATCH] http module is not checking correctly HTTP headers

2022-01-13 Thread Jamo
From: Javier Moragon I applied the last suggestion in this patch and I've finally realized how to use git send-email. I'm sorry for the unnecesary mails and I hope for next contributions I won't make the same mistakes, Thank you! --- grub-core/net/http.c | 6 +++--- 1 file changed, 3 insertio

[PATCH] http: parse HTTP headers case-insensitive

2022-01-14 Thread Jamo
According to https://www.ietf.org/rfc/rfc2616.txt 4.2, header names shall be case insensitive and we are now forced to read headers like `Content-Length` capitalized. The problem with that is when a HTTP server responds with a `content-length` header in lowercase GRUB gets stuck because HTTP modul

[PATCH] http: parse HTTP headers case-insensitive

2022-01-14 Thread Jamo
According to https://www.ietf.org/rfc/rfc2616.txt 4.2, header names shall be case insensitive and we are now forced to read headers like "Content-Length" capitalized. The problem with that is when a HTTP server responds with a "content-length" header in lowercase, GRUB gets stuck because HTTP modu

[PATCH v2] http: parse HTTP headers case-insensitive

2022-01-16 Thread Jamo
According to https://www.ietf.org/rfc/rfc2616.txt 4.2, header names shall be case insensitive and we are now forced to read headers like "Content-Length" capitalized. The problem with that is when a HTTP server responds with a "content-length" header in lowercase, GRUB gets stuck because HTTP modu