100 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 0ecd6da1f9 POST multipart parser: minor improvements and fixes 2024-09-03 12:27:25 +02:00
Evgeny Grin (Karlson2k) 4b6065c846 POST parser: removed duplicated zero-termination assignment 2024-09-03 11:25:03 +02:00
Evgeny Grin (Karlson2k) 46b1d1b9d7 POST parser: fixed assert 2024-09-02 14:07:22 +02:00
Evgeny Grin (Karlson2k) 08cb693a3a POST parser: unified some code. No functional change. 2024-09-02 14:00:35 +02:00
Evgeny Grin (Karlson2k) 46b2e2f40f POST parser: removed duplicated assignments 2024-09-02 13:40:58 +02:00
Evgeny Grin (Karlson2k) dc80e9d21b POST parser: do not try to process buffer leftovers if request is discarded 2024-09-02 13:26:49 +02:00
Evgeny Grin (Karlson2k) ac80238255 POST multipart parser: one more fix for data streaming 2024-09-02 13:26:44 +02:00
Evgeny Grin (Karlson2k) 681bbd1b70 MHD_request_get_post_data_cb(): added some asserts 2024-09-02 11:37:14 +02:00
Evgeny Grin (Karlson2k) fa3f257da3 Implemented MHD_request_get_post_data_cb() 2024-09-02 11:31:33 +02:00
Evgeny Grin (Karlson2k) 61377fbc26 POST parser: optimised size, clarified message 2024-09-02 11:31:33 +02:00
Evgeny Grin (Karlson2k) 69184717bd POST parser: fixed partial data processing 2024-09-02 10:09:05 +02:00
Evgeny Grin (Karlson2k) c4fb54d46c POST multipart parser: fixed processing of the data with broken termination 2024-09-02 01:36:56 +02:00
Evgeny Grin (Karlson2k) 152414c667 response: added PANIC for wrong use 2024-09-02 01:31:35 +02:00
Evgeny Grin (Karlson2k) 332e10db9d src/examples2: added .gitignore 2024-09-02 01:31:34 +02:00
Evgeny Grin (Karlson2k) dfb676011e POST multipart parser: fixed streaming 2024-09-02 01:31:34 +02:00
Evgeny Grin (Karlson2k) e1a21dd74b stream_process_reply: do not duplicate "Connection" headers when have user headers 2024-09-02 01:31:33 +02:00
Evgeny Grin (Karlson2k) 0a5775ca8a POST parser: implemented incremental processing when system provides data larger than "large buffer" 2024-09-02 01:31:33 +02:00
Evgeny Grin (Karlson2k) 274d0c8633 POST multipart parser: fixed streaming processing 2024-09-02 01:28:59 +02:00
Evgeny Grin (Karlson2k) 805d145322 POST multipart parser: improved "name" and "filename" detection 2024-09-02 01:28:58 +02:00
Evgeny Grin (Karlson2k) 92747c6e8e post_parser_funcs: re-written some asserts 2024-09-02 01:28:56 +02:00
Evgeny Grin (Karlson2k) 3944ddb465 demo: fixed NULL dereferences 2024-09-02 01:28:56 +02:00
Evgeny Grin (Karlson2k) 113761e7b0 action: added missing response use counter increment 2024-09-02 01:28:55 +02:00
Evgeny Grin (Karlson2k) 7ed36eb9cb Fixed important lost code, broken by options-generator commit 59b558d928
A fix that would take just a couple of minutes without options-generator.
2024-09-02 01:28:54 +02:00
Evgeny Grin (Karlson2k) cf7bc560fd demo: minor readability improvement 2024-09-01 12:06:48 +02:00
Evgeny Grin (Karlson2k) c85dcb058a demo: fixed page build error resulted in broken page and uninitialised data use 2024-09-01 12:04:30 +02:00
Evgeny Grin (Karlson2k) 3ebcdb43fb Fixed copy-paste error in previous commit 2024-09-01 10:59:07 +02:00
Evgeny Grin (Karlson2k) a5bc23aa71 MHD_upload_action_from_response(): fixed NULL response processing 2024-09-01 10:55:06 +02:00
Evgeny Grin (Karlson2k) 1c100f939f demo: fixed too late reusable response attribute 2024-08-31 13:04:54 +02:00
Evgeny Grin (Karlson2k) 216af47591 Fixed location of the call of the response use increment function 2024-08-31 13:00:10 +02:00
Evgeny Grin (Karlson2k) b43dcdc8a3 Added more function attributes for internal functions 2024-08-31 12:48:09 +02:00
Evgeny Grin (Karlson2k) c059a3c57d Fixed missing reusable response use increment 2024-08-31 12:37:49 +02:00
Evgeny Grin (Karlson2k) 5661da74ed Fixed typo in internal function name 2024-08-31 12:20:42 +02:00
Evgeny Grin (Karlson2k) fc363a7097 API: Fixed wrong function attributes 2024-08-31 12:13:18 +02:00
Evgeny Grin (Karlson2k) 03d4a20131 demo: fixed one more NULL dereference 2024-08-31 11:55:40 +02:00
Evgeny Grin (Karlson2k) 46b9c0fa74 Makefile: changed the order of subdirs processing 2024-08-31 11:50:30 +02:00
Evgeny Grin (Karlson2k) 8f05df5bdf demo: fixed NULL dereference 2024-08-31 11:48:23 +02:00
Evgeny Grin (Karlson2k) e56d40a7a7 demo: updated to use the new API 2024-08-31 11:33:04 +02:00
Evgeny Grin (Karlson2k) 06092dc444 demo: portability fixes 2024-08-31 11:32:34 +02:00
Evgeny Grin (Karlson2k) 2d85aa3972 demo: fixed compiler warning 2024-08-31 09:50:53 +02:00
Evgeny Grin (Karlson2k) b1fb42c7dd demo: handle correctly unexpected requests 2024-08-31 09:50:20 +02:00
Evgeny Grin (Karlson2k) 83774e4aa9 tests/client_server: fixed "multipart/mixed" data 2024-08-30 04:16:56 +02:00
Evgeny Grin (Karlson2k) 129176492b post_parser_funcs: implemented "multipart/mixed" parsing 2024-08-30 04:16:09 +02:00
Evgeny Grin (Karlson2k) 227073656e Fixed public API for empty response 2024-08-30 04:15:06 +02:00
Evgeny Grin (Karlson2k) 7a7439f82a Reworked POST fields storage 2024-08-27 19:37:23 +02:00
Evgeny Grin (Karlson2k) ede6e9e774 tests/client_server: enabled POST urlencoded testing 2024-08-27 11:45:56 +02:00
Evgeny Grin (Karlson2k) 74c759e129 post_parser: implemented URL-decoding, minor API update 2024-08-27 11:28:01 +02:00
Evgeny Grin (Karlson2k) 0b7a79aa99 option-generator: more basic fixes
Many things are still broken
2024-08-24 17:32:37 +02:00
Evgeny Grin (Karlson2k) cff1e2fa8e tests/client_server: fixed wrong request header 2024-08-23 10:34:27 +02:00
Evgeny Grin (Karlson2k) 660a7c3c05 tests/client_server: fixed leak of libcurl resource 2024-08-23 10:01:22 +02:00
Evgeny Grin (Karlson2k) fb5ea40417 Free "large buffer" earlier 2024-08-22 21:58:01 +02:00
Evgeny Grin (Karlson2k) c6662f8f7d post_parser_funcs: fixed missing init 2024-08-22 21:34:57 +02:00
Evgeny Grin (Karlson2k) db44562b41 tests/client_server: check for NULL in field "value" 2024-08-22 21:34:57 +02:00
Evgeny Grin (Karlson2k) 248ccc95d7 response_from: fixed leak when failed 2024-08-22 21:34:57 +02:00
Evgeny Grin (Karlson2k) 90841ccf4f src/mhd2/Makefile.am: removed duplicated target 2024-08-22 21:34:55 +02:00
Evgeny Grin (Karlson2k) f66567b599 mhd_dlinked_list: added more asserts
Should help analysers to avoid wrong paths
2024-08-22 21:34:55 +02:00
Evgeny Grin (Karlson2k) ad7d62f186 .gitlab-ci.yml: scan-build speed-up 2024-08-22 21:34:14 +02:00
Evgeny Grin (Karlson2k) d4fda3f574 .gitlab-ci.yml: correction 2024-08-22 21:34:13 +02:00
Evgeny Grin (Karlson2k) 733a5fb0c2 .gitlab-ci.yml: another workaround for options-generator 2024-08-22 17:10:40 +02:00
Evgeny Grin (Karlson2k) 2ce751b4b6 make dist fixes 2024-08-22 16:54:28 +02:00
Evgeny Grin (Karlson2k) b7e51b5800 .gitlab-ci.yml: scan-build fixes, disabled broken cross-compiling 2024-08-22 16:54:28 +02:00
Evgeny Grin (Karlson2k) 082932e3f0 options-generator fixes, removed unused leftovers 2024-08-22 16:54:27 +02:00
Evgeny Grin (Karlson2k) d9e884bb54 Re-designed "large buffer" automatic size and deallocation 2024-08-22 16:54:27 +02:00
Evgeny Grin (Karlson2k) 39a8bdcb85 Fixed leak when destroying non-started daemon 2024-08-22 12:01:43 +02:00
Evgeny Grin (Karlson2k) 0156350171 NEWS: updated 2024-08-22 11:52:37 +02:00
Evgeny Grin (Karlson2k) 5c958a37e2 options-generator: minimal Makefile compatibility fixes 2024-08-22 11:40:11 +02:00
Evgeny Grin (Karlson2k) ea204d7f1b tests/client_server: fixed compatibility with older libcurl API 2024-08-22 11:28:10 +02:00
Evgeny Grin (Karlson2k) 8dda83a6b3 Temporarily limited testing to text/plain 2024-08-21 13:21:27 +02:00
Evgeny Grin (Karlson2k) d5942a1dab POST parsing: finished text/plain 2024-08-21 13:21:27 +02:00
Evgeny Grin (Karlson2k) 2b78707ade Re-designed connection closing 2024-08-21 13:21:26 +02:00
Evgeny Grin (Karlson2k) d867244c89 Implemented MHD_request_get_values_cb() 2024-08-21 13:17:13 +02:00
Evgeny Grin (Karlson2k) 72345d1583 tests/client_server: sorted internal includes 2024-08-21 13:17:13 +02:00
Evgeny Grin (Karlson2k) 1f72326329 tests/client_server: fixed system includes 2024-08-21 13:17:13 +02:00
Evgeny Grin (Karlson2k) 2081297a46 include "microhttpd2.h" instead of <microhttpd2.h> in tests 2024-08-21 13:17:12 +02:00
Evgeny Grin (Karlson2k) 1573518352 tests/client_server: added more checks 2024-08-21 13:17:12 +02:00
Evgeny Grin (Karlson2k) 851cd2cb28 tests/client_server: fixed to match the updated API 2024-08-21 13:17:12 +02:00
Evgeny Grin (Karlson2k) 2396c47902 tests/client_server: fixed memory leak 2024-08-21 13:17:11 +02:00
Evgeny Grin (Karlson2k) ca767d7afa tests/client_server: fixed use of MHD API 2024-08-21 13:17:11 +02:00
Evgeny Grin (Karlson2k) 87763beb41 tests/client_server: fixed compiler warnings 2024-08-21 13:17:11 +02:00
Evgeny Grin (Karlson2k) 09d298fac4 tests/client_server: fixed quoiting style
Used right quoiting as set by
https://www.gnu.org/prep/standards/html_node/Quote-Characters.html#Quote-Characters
2024-08-21 13:17:10 +02:00
Evgeny Grin (Karlson2k) a99efd677e options-generator.c: basic portability fixes 2024-08-21 13:17:10 +02:00
Evgeny Grin (Karlson2k) 0f32d1d95c options-generator.c: fixed macro redefinition 2024-08-21 13:17:10 +02:00
Evgeny Grin (Karlson2k) a87faf2c47 options-generator.c: fixed missing include 2024-08-21 13:17:09 +02:00
Evgeny Grin (Karlson2k) c036146af5 WIP POST parser 2024-08-13 11:32:48 +02:00
Evgeny Grin (Karlson2k) ae4e9e2818 Fixes for "request ended" callback 2024-08-11 13:35:27 +02:00
Evgeny Grin (Karlson2k) e357060954 Minimal fix for response-generator builds
Out-of-tree builds still does not work.
Non-GNU makes still do not work.
Cross-compiling still does not work.
Parallel make still does not work.
2024-08-05 13:51:25 +02:00
Evgeny Grin (Karlson2k) c4f6c9ae99 Fixed Makefile broken by 4b40a1d89c 2024-08-05 12:22:16 +02:00
Evgeny Grin (Karlson2k) 7ebde843ce Updated POST-related API 2024-08-04 15:53:41 +02:00
Evgeny Grin (Karlson2k) d99aff567c mhd_sys_extentions.m4: more fixed for older autoconf 2024-08-03 18:50:06 +02:00
Evgeny Grin (Karlson2k) 5e3ea64cce mhd_sys_extentions.m4: improved compatibility with old autoconf versions 2024-08-03 18:31:19 +02:00
Evgeny Grin (Karlson2k) 5f9b22b21f mhd_sys_extentions.m4: updated, workarounds for broken clang behaviour 2024-08-03 18:08:40 +02:00
Evgeny Grin (Karlson2k) 3b2f897d01 digestauth: fixed log message when wrong value used and MHD has some
hashing algorithms disabled.
2024-08-02 16:01:19 +02:00
Evgeny Grin (Karlson2k) 8a7b668345 test_client_put_stop: adapted test for GNU Hurd kernel 2024-08-02 16:01:11 +02:00
Evgeny Grin (Karlson2k) 86b7229a36 man page: updated bug tracker link 2024-08-02 16:01:10 +02:00
Evgeny Grin (Karlson2k) 55f416f436 Fixed man page as suggested by Florian Ernst 2024-08-02 16:01:10 +02:00
Evgeny Grin (Karlson2k) cc1ffae175 test_upgrade: removed duplicated include
Reported by Martin Strunz (maddin200)
2024-08-02 16:01:09 +02:00
Evgeny Grin (Karlson2k) e1248def30 digestauth: explicitly reject unsupported algorithm requested by application 2024-08-02 16:00:55 +02:00
Evgeny Grin (Karlson2k) ee3cf9cf31 digestauth: fixed bits manipulations
No functional change as the rest of the code does not support sessions.
Reported by Martin Strunz (maddin200)
2024-08-02 16:00:54 +02:00
Evgeny Grin (Karlson2k) 087cbe5555 test_str_bin_hex: fixed reporting 2024-08-02 16:00:20 +02:00
Evgeny Grin (Karlson2k) d0d074bcdd mhd_str.c: fixed logic when built without 'inline' 2024-08-02 16:00:03 +02:00
Evgeny Grin (Karlson2k) 66db402c48 mhd_bool.m4: new autoconf macro that supports C23
The macro should works faster in the most common scenarios
2024-08-02 15:54:10 +02:00