http: Prepend prefix when the HTTP path is relative
authorJavier Martinez Canillas <javierm@redhat.com>
Mon, 9 Jan 2023 23:30:43 +0000 (18:30 -0500)
committerJulian Andres Klode <jak@debian.org>
Sun, 2 Nov 2025 11:08:11 +0000 (12:08 +0100)
commit5ce43ebb4c0219fc36deee463dd38c8e6adacee5
tree102f675e6937c29b3420c1c0bb7c74a475fd3c23
parentfb1857bfdccc25806ca2a96c9bd3a4ad083a2781
http: Prepend prefix when the HTTP path is relative

There are two different HTTP drivers that can be used when requesting an
HTTP resource: the efi/http that uses the EFI_HTTP_PROTOCOL and the http
that uses GRUB's HTTP and TCP/IP implementation.

The efi/http driver appends a prefix that is defined in the variable
http_path, but the http driver doesn't.  So using this driver and
attempting to fetch a resource using a relative path fails.  Match the
behavior of efi/http.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Co-authored-by: Robbie Harwood <rharwood@redhat.com>
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Gbp-Pq: Topic network
Gbp-Pq: Name http-prepend-prefix-when-the-http-path-is-relative.patch
grub-core/net/http.c