lwIP - A Lightweight TCP/IP stack - Bugs: bug #58223, Web server returns HTTP status...
You are not allowed to post comments on this tracker with your current authentication level.
bug #58223: Web server returns HTTP status code 200 instead of 404 when LWIP_HTTPD_DYNAMIC_HEADER is enabled
Submitter: | Marco Lazzaroni <marcolazzaroni> | ||
Submitted: | Tue 21 Apr 2020 08:31:33 PM UTC | ||
Category: | apps | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Fixed |
Privacy: | Public | Assigned to: | kleshov |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | git head |
Tue 26 Jan 2021 04:26:10 PM UTC, comment #1: |
Mike Kleshov <kleshov> |
Tue 21 Apr 2020 08:31:33 PM UTC, original submission:
As per object, I get a HTTP 200 status code when doing a GET of a missing page.
I generate the fsdata_custom.c file with
(so the headers are not included twice)
...does not behave as expected because while debugging I saw that uri equals "/404.html" and not "404.html", so the if condition is not true. I think that changing that line to
but I'm not sure whether is correct in all possible cases (I mean, all the possible #define combinations supported by LWIP).
|
Marco Lazzaroni <marcolazzaroni> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-01-26 | kleshov | Status | None | Fixed | |
Assigned to | None | kleshov | |||
Open/Closed | Open | Closed |
Powered by Savane 3.13-d3ae.
Corresponding source code
This bug was introduced by a recent commit that was supposed to fix another bug (56290). I can see no problems with the fix that you are proposing. Pushing it to repo.
Thanks for reporting.