Skip to content

Commit 2db4fdd

Browse files
committed
Merge pull request #121 from acv/quieten-libhttpd
Remove Invalid request path printf
2 parents 5cb3a36 + 2c00c9d commit 2db4fdd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

libhttpd/api.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/* vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab
22
** Copyright (c) 2002 Hughes Technologies Pty Ltd. All rights
33
** reserved.
44
**
@@ -427,9 +427,6 @@ httpdReadRequest(httpd * server, request * r)
427427
** End of headers. Continue if there's
428428
** data to read
429429
*/
430-
if (r->request.contentLength == 0)
431-
break;
432-
inHeaders = 0;
433430
break;
434431
}
435432

@@ -799,7 +796,7 @@ httpdProcessRequest(httpd * server, request * r)
799796
dirName[HTTP_MAX_URL - 1] = 0;
800797
cp = strrchr(dirName, '/');
801798
if (cp == NULL) {
802-
printf("Invalid request path '%s'\n", dirName);
799+
/* printf("Invalid request path '%s'\n", dirName); */
803800
return;
804801
}
805802
strncpy(entryName, cp + 1, HTTP_MAX_URL);

0 commit comments

Comments
 (0)