Commit Graph
4824 Commits
Author SHA1 Message Date
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
Evgeny Grin (Karlson2k) b44b4f73dd test_head: added check for excess data in reply 2022-10-28 12:13:07 +03:00
Evgeny Grin (Karlson2k) 9b86ff304c testcurl: added test with Content-Length broken value in request 2022-10-28 12:10:18 +03:00
Evgeny Grin (Karlson2k) f1bfbe71dc connection.c: fixed handling of various errors automatically detected by MHD code
Make sure that errors replies are processed correctly.
2022-10-28 12:10:18 +03:00
Evgeny Grin (Karlson2k) f1c69db300 Reworked partial processing of the upload
Now if some data has been processed by Access Handler Callback, zero
timeout is used for the next turn and at the same time more data is
read (if available) from the network.
If Access Handler Callback has not processed any data, MHD will wait
for additional data to come.
2022-10-22 09:48:07 +03:00
Evgeny Grin (Karlson2k) bf9e99729c Do not send "100 Continue" if part of the request body is already received 2022-10-22 09:48:07 +03:00
Evgeny Grin (Karlson2k) 692e8c5655 Do not send "100 Continue" if request does not have a body 2022-10-22 09:48:06 +03:00
Evgeny Grin (Karlson2k) dd7f9dfe91 Renamed one more connection state for clarity 2022-10-22 09:48:06 +03:00
Evgeny Grin (Karlson2k) 9fef2196c6 Renamed one state in MHD_ConnectionEventLoopInfo for clarity 2022-10-22 09:48:06 +03:00
Evgeny Grin (Karlson2k) 699b6cd563 Added new state for MHD_ConnectionEventLoopInfo 2022-10-22 09:48:06 +03:00
Evgeny Grin (Karlson2k) 571ec18078 New values for MHD_ConnectionEventLoopInfo 2022-10-22 09:47:59 +03:00
Evgeny Grin (Karlson2k) cf6f91bd6e Added check for hypothetical too large accepted sockets addresses
Also added warning (instead of rejection) for zero-length addresses.
2022-10-14 15:13:46 +03:00
Evgeny Grin (Karlson2k) 30beb61e11 Added ability to check for MHD debug builds at run-time 2022-10-14 11:25:29 +03:00