summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2008-03-17 12:58:19 +0000
committerDenis Vlasenko2008-03-17 12:58:19 +0000
commit9c8c03898166dd0ae32094325090d902b8828e8e (patch)
treec600fe58f6baa41bd802aba2dbb3560f71a6a953
parentd1277c605240d12b76c2a6427320db9317d9dbbf (diff)
downloadbusybox-9c8c03898166dd0ae32094325090d902b8828e8e.zip
busybox-9c8c03898166dd0ae32094325090d902b8828e8e.tar.gz
httpd: small fixlet for POST upload - skip
whitespace between "Content-length:" and number
-rw-r--r--networking/httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 522e7ee..620e680 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! */