From 9c8c03898166dd0ae32094325090d902b8828e8e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 17 Mar 2008 12:58:19 +0000 Subject: [PATCH] httpd: small fixlet for POST upload - skip whitespace between "Content-length:" and number --- networking/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/httpd.c b/networking/httpd.c index 522e7eec0..620e680ac 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1977,7 +1977,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) && prequest != request_HEAD #endif ) { - tptr = iobuf + sizeof("Content-length:") - 1; + tptr = skip_whitespace(iobuf + sizeof("Content-length:") - 1); if (!tptr[0]) send_headers_and_exit(HTTP_BAD_REQUEST); /* not using strtoul: it ignores leading minus! */ -- 2.25.1