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)
committerFelix Zielcke <fzielcke@z-51.de>
Mon, 15 Jul 2024 15:05:20 +0000 (17:05 +0200)
commite0b6cc207021317c36d8edfa495163b558cd299f
tree51385e61ad19eb98ba4769ae11b016b979fa6189
parent82f31c54b4f5fa1ee0d75b1d29a32e36f229fc2e
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