mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
Revert "Apply patch #10511: remove code with no effect in httpd.c"
This reverts commit f877b457a1bb759d48567326ec020be7e3a3d989.
This commit is contained in:
parent
31d8988f89
commit
ca0395c5ae
@ -2118,6 +2118,12 @@ http_parse_request(struct pbuf *inp, struct http_state *hs, struct altcp_pcb *pc
|
|||||||
struct pbuf *q = inp;
|
struct pbuf *q = inp;
|
||||||
#endif /* LWIP_HTTPD_SUPPORT_REQUESTLIST */
|
#endif /* LWIP_HTTPD_SUPPORT_REQUESTLIST */
|
||||||
err = http_post_request(q, hs, data, data_len, uri, sp2);
|
err = http_post_request(q, hs, data, data_len, uri, sp2);
|
||||||
|
if (err != ERR_OK) {
|
||||||
|
/* restore header for next try */
|
||||||
|
*sp1 = ' ';
|
||||||
|
*sp2 = ' ';
|
||||||
|
uri[uri_len] = ' ';
|
||||||
|
}
|
||||||
if (err == ERR_ARG) {
|
if (err == ERR_ARG) {
|
||||||
goto badrequest;
|
goto badrequest;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user