Commit Graph
4836 Commits
Author SHA1 Message Date
Christian Grothoff e8118a6fca -typo 2023-02-27 16:54:17 +01:00
Christian Grothoff 6d6846e20b fix parser bug that could be used to crash servers using the MHD_PostProcessor 2023-02-26 17:51:39 +01:00
Christian Grothoff 08f933a6ad epoll: immediately notice when other side closes the socket, instead of waiting for timeout (fixes #7192) 2023-02-08 15:26:19 +01:00
Christian Grothoff 4627d005d2 add assertion to guard against bad behavior described in #7196, also document that after suspending one must return MHD_YES 2023-02-08 14:28:49 +01:00
Evgeny Grin (Karlson2k) a7c913850d test_tricky: fixed reported error description 2022-12-27 16:20:20 +03:00
Evgeny Grin (Karlson2k) f927a8c363 test_digestauth2: fixed test report strings 2022-12-27 16:20:19 +03:00
Evgeny Grin (Karlson2k) a5504e3614 response.c: fixed compiler warning on x32 platforms 2022-12-27 16:20:19 +03:00
Evgeny Grin (Karlson2k) a0cb931f0c daemon: fixed compiler warning for non-TLS builds 2022-12-27 16:20:19 +03:00
Christian Grothoff fc848aaff3 -typo 2022-12-27 11:04:53 +01:00
Evgeny Grin (Karlson2k) 0c4ef0dd38 Correction for 4a169d0cff 2022-12-24 18:27:01 +03:00
Evgeny Grin (Karlson2k) 4a169d0cff configure: try to detect whether eventfd is enabled
eventfd is optional kernel feature, MHD can work just fine without
eventfd enabled.
2022-12-23 17:47:01 +03:00
Evgeny Grin (Karlson2k) 2efc013917 configure: used better detection of some functions when cross-compiling 2022-12-23 16:38:13 +03:00
Evgeny Grin (Karlson2k) 84dfd52f13 Added new M4 helper macro 2022-12-23 16:01:57 +03:00
Evgeny Grin (Karlson2k) 4dadf8ec97 Updated parsing of cookies, reject cookie completely if discipline is very strict 2022-12-22 20:17:55 +03:00
Evgeny Grin (Karlson2k) 012ae6c1c7 Updated W32 resources file 2022-12-22 18:26:33 +03:00
Evgeny Grin (Karlson2k) 5c3a61d68c Added new daemon option MHD_OPTION_CLIENT_DISCIPLINE_LV
Reject URIs with spaces as per RFC.
Fixed check for space before colon in headers (previously it was checked
only when MHD was NOT strict).
Reject HTTP/1.1 requests without host by default (as per RFC).
2022-12-22 18:25:49 +03:00
Evgeny Grin (Karlson2k) 42be9415cb connection.c: cosmetics 2022-12-21 18:50:22 +03:00
Evgeny Grin (Karlson2k) e60c63aff6 Always close connection after reply if both Content-Length and chucked are used
When both headers are used, the real length of the request may not be
determined unambiguously, the start of the next request is unclear.
2022-12-19 18:32:12 +03:00
Evgeny Grin (Karlson2k) 1e7ad3010d Refactored cookies parsing.
The new code is more compact as duplicated code was removed.
Added testing for various cookies parsing strictness levels.
2022-12-19 18:13:44 +03:00
Evgeny Grin (Karlson2k) 38b46a2fd1 test_parse_cookies: rewritten
Reused the same connection with the server.
Added more flexible checks.
2022-12-19 18:13:44 +03:00
Evgeny Grin (Karlson2k) 2a71dbd38f MHD_get_version_bin(): added new function 2022-12-19 18:13:44 +03:00
Evgeny Grin (Karlson2k) c47bb426b6 parse_http_version(): cosmetics 2022-12-19 18:13:43 +03:00
Evgeny Grin (Karlson2k) 784b802900 digestauth: avoid malloc() repeat by using the new function 2022-12-19 18:13:43 +03:00
Evgeny Grin (Karlson2k) e4db5b26c7 response.c: added new internal function to avoid repetitive malloc()s 2022-12-19 18:13:43 +03:00
Evgeny Grin (Karlson2k) 3444792f14 Refactored user-poison: minimized scope of non-sanitized code 2022-11-26 20:02:17 +03:00
Evgeny Grin (Karlson2k) 49c675a0e9 configure: fixed detection of eventfd() with new compilers builds 2022-11-26 19:30:19 +03:00
Evgeny Grin (Karlson2k) 9d2994f1ea test_get_iovec: fixed missing include headers 2022-11-24 13:37:43 +03:00
Evgeny Grin (Karlson2k) fcf9a2d29c test_upgrade{,_large}: fixed HTTP/1.1 compatibility 2022-11-24 13:37:37 +03:00
Evgeny Grin (Karlson2k) a37a83ff3e testcurl: fixed checking response headers as null-terminated string 2022-11-07 13:51:37 +03:00
Evgeny Grin (Karlson2k) 1ffe7932df Tests and examples: added rule to (re-)build libmicrohttpd.la 2022-11-06 15:01:19 +03:00
Evgeny Grin (Karlson2k) 099b50e44a connection: reject or log requests with both chunked encoding and Content-Length 2022-11-06 15:01:18 +03:00
Evgeny Grin (Karlson2k) 377e2cbd52 connection: refuse requests with unsupported Transfer-Encoding
The end of the request body (context) cannot be determined if
Transfer-Encoding is not supported.
2022-11-06 15:01:18 +03:00
Evgeny Grin (Karlson2k) 8d6d9be08d Fixed macro name spelling 2022-11-06 15:01:18 +03:00
Evgeny Grin (Karlson2k) b040c27828 configure: improved check for asserts 2022-11-06 15:01:18 +03:00
Evgeny Grin (Karlson2k) 0b07383f01 configure: sorted summary messages 2022-10-30 19:28:22 +03:00
Evgeny Grin (Karlson2k) b7475cd8db configure: removed extra empty lines in built-in help 2022-10-30 19:28:22 +03:00
Evgeny Grin (Karlson2k) a64f771aeb test-suite: marked some tests as "very heavy" tests 2022-10-30 19:28:22 +03:00
Evgeny Grin (Karlson2k) 553f3e5de4 configure: added summary message about heavy tests 2022-10-30 14:55:56 +03:00
Evgeny Grin (Karlson2k) 63b5181546 configure: added summary message about fuzzing tests 2022-10-30 14:49:30 +03:00
Evgeny Grin (Karlson2k) 0d61882d80 configure: minor refactoring for check for libcurl-based tests 2022-10-30 14:12:38 +03:00
Evgeny Grin (Karlson2k) 9440f9aefe configure: do not pass AM_TESTS_ENVIRONMENT directly 2022-10-30 13:20:19 +03:00
Evgeny Grin (Karlson2k) 0458e0d2a3 testzzuf: fixed missing CPPFLAGS from configure 2022-10-30 12:59:21 +03:00
Christian Grothoff b85d48cd95 -support mime-types by file extension in demo.c 2022-10-28 15:20:38 +02:00
Evgeny Grin (Karlson2k) fbb768d910 Fixing missing status update after 8565e7a8a9 2022-10-28 15:02:24 +03:00
Evgeny Grin (Karlson2k) 8565e7a8a9 epoll: make sure that connection waiting for data processing will be processed 2022-10-28 14:22:46 +03:00
Evgeny Grin (Karlson2k) d23d5400c4 Missing part for f1c69db300 2022-10-28 14:22:46 +03:00
Evgeny Grin (Karlson2k) 35cdcb5178 Fixed 699b6cd563
Do not removed connection from eready-list if it is waiting for
read and data processing at the same time.
2022-10-28 14:22:46 +03:00
Evgeny Grin (Karlson2k) 9f4a08a8d5 microhttpd.h: doxy improvements 2022-10-28 12:13:08 +03:00
Evgeny Grin (Karlson2k) 89e73e62ae postprocessor.h: fixed typos in doxy 2022-10-28 12:13:07 +03:00
Evgeny Grin (Karlson2k) f5d7b2fc92 test_head: check libcurl for timeout value 2022-10-28 12:13:07 +03:00