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)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 28 Jul 2024 22:42:11 +0000 (22:42 +0000)
commit84564fb15d5ef2a2b38beb53c09ad86fa5eaf83a
tree16438af7055e7bf1ab248919f7ba4d6bdfcdf809
parent0b96ca5eb959c35dd35f0048491a8dd1389d2439
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