Commit Graph
3898 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 4e01fd656a connection_close_error(): fixed set of error flag with messages disabled 2021-09-29 20:43:14 +03:00
Evgeny Grin (Karlson2k) 7278e5818e memorypool: added assert in MHD_pool_reallocate() 2021-09-29 20:42:55 +03:00
Evgeny Grin (Karlson2k) 235a277df3 connection.c: fixed compile with disabled messages 2021-09-29 20:42:37 +03:00
Evgeny Grin (Karlson2k) c07f446418 microhttpd.h: fixed doxy for MHD_KeyValueIteratorN 2021-09-28 21:06:39 +03:00
Evgeny Grin (Karlson2k) 9ba991c7d9 Improved and fixed doxy for MHD_add_response_header() 2021-09-26 18:34:59 +03:00
Evgeny Grin (Karlson2k) 71e09c24e6 Clarified doxy description of MHD_run_wait() 2021-09-25 19:45:44 +03:00
Evgeny Grin (Karlson2k) cba8e9f23e tests: fixed case-insensitive match for method name 2021-09-22 21:03:22 +03:00
Evgeny Grin (Karlson2k) 2c4af5c590 test_postprocessor: changed to match current API 2021-09-20 11:28:20 +03:00
Evgeny Grin (Karlson2k) fd609acd9e Partial revert "postprocessor: use NULL for 'data' for callback if no value is present"
This reverts commit 1e314fd50a.

The API change postponed until the next MHD version
2021-09-19 18:33:59 +03:00
Evgeny Grin (Karlson2k) d964b3ef85 postprocessor: added new processing state, changed logic.
Changed code to ensure that PP_Done is always set at the first newline char.
2021-09-19 16:06:03 +03:00
Evgeny Grin (Karlson2k) 215d156551 postprocessor: removed unused state value 2021-09-19 15:16:27 +03:00
Evgeny Grin (Karlson2k) 685e6368f4 postprocessor: simplify processing of urlencoding in edge cases 2021-09-17 12:19:03 +03:00
Evgeny Grin (Karlson2k) cc1d7c61ae configure: added detection of used run-time lib (type of C lib) 2021-09-17 11:58:55 +03:00
Evgeny Grin (Karlson2k) acc4cc29ed Cosmetics: fixed formatting for 'examples' 2021-09-17 11:54:58 +03:00
Evgeny Grin (Karlson2k) bf1993237a Use type specifiers for printf() from inttypes.h
This should improve compatibility with various C libs.
2021-09-17 11:53:55 +03:00
Christian Grothoff bd3325c924 -fix typo 2021-09-16 17:53:25 +02:00
Evgeny Grin (Karlson2k) 468723c2f6 ax_pthread.m4: updated to the latest version 2021-09-15 21:59:31 +03:00
Evgeny Grin (Karlson2k) e9096b7c8d postprocessor: fixed incomplete processing of hex-encoding values
Under certain conditions, the final part of the last value can be left
unprocessed.
2021-09-15 21:43:51 +03:00
Evgeny Grin (Karlson2k) 495da1140e test_postprocessor: added testing of hex-encoded values 2021-09-15 21:18:33 +03:00
Evgeny Grin (Karlson2k) 0d467e4c75 test_postprocessor: report more details 2021-09-15 21:16:46 +03:00
Evgeny Grin (Karlson2k) ddcc20a0ba postprocessor: minor code improvement 2021-09-15 19:54:46 +03:00
Evgeny Grin (Karlson2k) 1cf2ccde32 test_postprocessor: added test with double value 2021-09-15 19:47:17 +03:00
Evgeny Grin (Karlson2k) e3ed5e0d17 test_postprocessor: improved error reporting 2021-09-15 19:10:42 +03:00
Evgeny Grin (Karlson2k) 6dd2096b4b Fixed f032145edc
Ensure that parsing fail because of the wrong format, not
because of the callback.
2021-09-15 17:37:58 +03:00
Evgeny Grin (Karlson2k) 8036d0e3af test_postprocessor: added more tests for urlencoding 2021-09-15 16:48:27 +03:00
Evgeny Grin (Karlson2k) d811886d03 postprocessor: improved key parsing 2021-09-15 16:45:18 +03:00
Evgeny Grin (Karlson2k) f54fbeed22 test_postprocessor: added more tests for urlencoding 2021-09-15 16:10:30 +03:00
Evgeny Grin (Karlson2k) ca217985d9 test_postprocessor: improved error reporting 2021-09-15 15:16:07 +03:00
Evgeny Grin (Karlson2k) 4273eea6d4 test_postprocessor: added more cases for urlencoding 2021-09-15 15:16:07 +03:00
Evgeny Grin (Karlson2k) a7cdb394f2 Missing part of cec8013b70 2021-09-15 15:16:07 +03:00
Evgeny Grin (Karlson2k) cec8013b70 test_postprocessor: integrated one check into unified testing 2021-09-15 14:14:15 +03:00
Evgeny Grin (Karlson2k) 292b565629 test_postprocessor: test urlencoding more thoroughly 2021-09-15 13:57:21 +03:00
Evgeny Grin (Karlson2k) bbc57f9386 postprocessor: fixed empty key processing 2021-09-15 13:32:47 +03:00
Evgeny Grin (Karlson2k) ba63b33aea postprocessor: added asserts 2021-09-15 13:31:49 +03:00
Evgeny Grin (Karlson2k) 368991b0ee postprocessor: do not try to process value or key if state is 'error' 2021-09-15 12:11:22 +03:00
Evgeny Grin (Karlson2k) f032145edc test_postprocessor: added check with empty key 2021-09-15 11:48:20 +03:00
Evgeny Grin (Karlson2k) c37cf71908 Updated copyright year in W32 .DLL files resources 2021-09-15 11:47:25 +03:00
Evgeny Grin (Karlson2k) b6dbca7699 Moved some logic from 'configure' to 'mhd_align.h'
This should improve readability and maintainability of the code.
2021-09-13 21:00:54 +03:00
Evgeny Grin (Karlson2k) a066a34138 mhd_align.h: fixed copy-paste error
Alignment of uint64_t was incorrect
2021-09-13 19:14:39 +03:00
Evgeny Grin (Karlson2k) b5de085bf1 test_postprocessor: fixed strlen() with NULL 2021-09-12 20:01:54 +03:00
Evgeny Grin (Karlson2k) 1e314fd50a postprocessor: use NULL for 'data' for callback if no value is present 2021-09-12 19:44:13 +03:00
Evgeny Grin (Karlson2k) 7a6a9d14a4 postprocessor: minor optimization: do not process zero-length data 2021-09-12 19:31:45 +03:00
Evgeny Grin (Karlson2k) e724878002 postprocessor: do not call memcpy() / memmove() with zero size 2021-09-12 19:31:44 +03:00
Evgeny Grin (Karlson2k) 6c2f3cf24f postprocessor: fixed undefined behavior error
memcpy() must be called with valid pointers even if size is zero.
Sanitizer doesn't like 'zero pointer with zero offset' as well.
2021-09-12 19:31:44 +03:00
Evgeny Grin (Karlson2k) 4017f5a3ed postprocessor: added asserts in process_value() 2021-09-12 19:31:44 +03:00
Evgeny Grin (Karlson2k) bf6be24be3 test_postprocessor: fixed call of memcmp() with NULL pointers 2021-09-12 19:28:10 +03:00
Evgeny Grin (Karlson2k) ce7e1e50d3 test_postprocessor: catch impossible value 2021-09-11 14:19:47 +03:00
Evgeny Grin (Karlson2k) e7b2a95ce2 test_postprocessor: improved code readability
Robustness is improved as well as a side-effect
2021-09-11 14:19:03 +03:00
Evgeny Grin (Karlson2k) 706a156f9e test_postprocessor: fixed printf() called with NULL pointer 2021-09-11 13:19:57 +03:00
Evgeny Grin (Karlson2k) aa6b811d8d test_postprocessor: added checks for returned values 2021-09-10 22:39:38 +03:00