Blame SOURCES/0103-efinet-also-use-the-firmware-acceleration-for-http.patch

8e15ce
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8e15ce
From: Peter Jones <pjones@redhat.com>
8e15ce
Date: Mon, 30 Jul 2018 14:06:42 -0400
8e15ce
Subject: [PATCH] efinet: also use the firmware acceleration for http
8e15ce
8e15ce
Signed-off-by: Peter Jones <pjones@redhat.com>
8e15ce
---
8e15ce
 grub-core/net/efi/net.c | 4 +++-
8e15ce
 1 file changed, 3 insertions(+), 1 deletion(-)
8e15ce
8e15ce
diff --git a/grub-core/net/efi/net.c b/grub-core/net/efi/net.c
8e15ce
index 4bb308026ce..6603cd83edc 100644
8e15ce
--- a/grub-core/net/efi/net.c
8e15ce
+++ b/grub-core/net/efi/net.c
8e15ce
@@ -1324,7 +1324,9 @@ grub_efi_net_boot_from_https (void)
8e15ce
 	  && (subtype == GRUB_EFI_URI_DEVICE_PATH_SUBTYPE))
8e15ce
 	{
8e15ce
 	  grub_efi_uri_device_path_t *uri_dp = (grub_efi_uri_device_path_t *) dp;
8e15ce
-	  return (grub_strncmp ((const char*)uri_dp->uri, "https://", sizeof ("https://") - 1) == 0) ? 1 : 0;
8e15ce
+	  grub_dprintf ("efinet", "url:%s\n", (const char *)uri_dp->uri);
8e15ce
+	  return (grub_strncmp ((const char *)uri_dp->uri, "https://", sizeof ("https://") - 1) == 0 ||
8e15ce
+	          grub_strncmp ((const char *)uri_dp->uri, "http://", sizeof ("http://") - 1) == 0);
8e15ce
 	}
8e15ce
 
8e15ce
       if (GRUB_EFI_END_ENTIRE_DEVICE_PATH (dp))