httpd: small fixlet for POST upload - skip
whitespace between "Content-length:" and number
This commit is contained in:
@@ -1977,7 +1977,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
|
|||||||
&& prequest != request_HEAD
|
&& prequest != request_HEAD
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
tptr = iobuf + sizeof("Content-length:") - 1;
|
tptr = skip_whitespace(iobuf + sizeof("Content-length:") - 1);
|
||||||
if (!tptr[0])
|
if (!tptr[0])
|
||||||
send_headers_and_exit(HTTP_BAD_REQUEST);
|
send_headers_and_exit(HTTP_BAD_REQUEST);
|
||||||
/* not using strtoul: it ignores leading minus! */
|
/* not using strtoul: it ignores leading minus! */
|
||||||
|
|||||||
Reference in New Issue
Block a user