Skip to content

Commit a52e573

Browse files
committed
httpboot: Convert 404 Not found error to EFI_NOT_FOUND
This will result in falling back to the default second stage loader like disk based lookups.
1 parent 60dbb3f commit a52e573

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

httpboot.c

+8-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,14 @@ receive_http_response(EFI_HTTP_PROTOCOL *http, VOID **buffer, UINT64 *buf_size)
565565
if (http_status != HTTP_STATUS_200_OK) {
566566
perror(L"HTTP Status Code: %d\n",
567567
convert_http_status_code(http_status));
568-
efi_status = EFI_ABORTED;
568+
switch (http_status) {
569+
case HTTP_STATUS_404_NOT_FOUND:
570+
efi_status = EFI_NOT_FOUND;
571+
break;
572+
default:
573+
efi_status = EFI_ABORTED;
574+
break;
575+
}
569576
goto error;
570577
}
571578

0 commit comments

Comments
 (0)