[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] GRUB2: Fix http IO handler to report protocol level errors
From: |
Ilya Bakulin |
Subject: |
[PATCH] GRUB2: Fix http IO handler to report protocol level errors |
Date: |
Wed, 12 Nov 2014 16:56:29 +0100 |
User-agent: |
KMail/1.9.10 (enterprise35 0.20130718.c93b994) |
Hi list,
we have found that GRUB2 doesn't respect HTTP error codes when trying to load
the files via HTTP.
-----------------------------------------------------------
grub> cat (http)/~ibaku/nonexistent
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /~ibaku/nonexistent was not found on this server.</p>
<hr>
<address>Apache/2.2.22 (Debian) Server at xxx.xxx.xxx.xxx Port 80</address>
</body></html>
grub>
-----------------------------------------------------------
With the attached patch the behaviour is correct:
-----------------------------------------------------------
grub> cat (http)/~ibaku/nonexistent
http_receive: error after processing headers
error: file `/~ibaku/nonexistent' not found.
grub>
-----------------------------------------------------------
Please review and merge it if its OK.
--
Ilya
Fix-http-IO-handler.patch
Description: Text Data
signature.asc
Description: This is a digitally signed message part.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] GRUB2: Fix http IO handler to report protocol level errors,
Ilya Bakulin <=