Commit Graph
3698 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 0eb4d030ae test_http_reasons: fixed
The test was broken with update for new API
2021-07-28 13:47:09 +03:00
Evgeny Grin (Karlson2k) f493fd84dc Makefile fixed for dist* targets 2021-07-28 13:04:27 +03:00
Evgeny Grin (Karlson2k) 182ed3a0e0 response: use macro instead of string for connection header 2021-07-28 11:28:44 +03:00
Evgeny Grin (Karlson2k) 140f4844bb Added new public API function MHD_get_reason_phrase_len_for() 2021-07-28 11:28:44 +03:00
Evgeny Grin (Karlson2k) bbf0a2969c Re-written chunk footer generation function as a separate function
Separated reply footer generation from reply header generation.
2021-07-28 11:28:44 +03:00
Evgeny Grin (Karlson2k) 28223f6a59 keepalive_possible(): check whether app requested close 2021-07-28 11:28:43 +03:00
Evgeny Grin (Karlson2k) 678dcd0931 response: use auto flag for chunked encoding header 2021-07-28 11:28:43 +03:00
Evgeny Grin (Karlson2k) 2cab7e09b7 try_ready_chunked_body: use new string function, fixes.
* Used new MHD_uint32_to_strx() function
* Ensure that send buffer always has at least 128 bytes to avoid
  potential overrun
* Added static const vars for readability
2021-07-28 11:28:43 +03:00
Evgeny Grin (Karlson2k) ee3f322200 Added internal functions for printing decimal and hex numbers 2021-07-27 11:00:42 +03:00
Evgeny Grin (Karlson2k) 237aebfade mhd_str: use smaller include 2021-07-21 23:15:49 +03:00
Evgeny Grin (Karlson2k) 23a02962de test_str_tokens_remove: shut spell checker 2021-07-21 23:11:24 +03:00
Evgeny Grin (Karlson2k) de74ea36ff test_str_tokens_remove: test corner cases 2021-07-21 23:04:40 +03:00
Evgeny Grin (Karlson2k) eb731135bb mhd_str.h: fixed compilation with MSVC 2021-07-21 23:01:07 +03:00
Evgeny Grin (Karlson2k) c2a8933a7e mhd_align.h: added support for MSVC compiler 2021-07-21 23:01:06 +03:00
Evgeny Grin (Karlson2k) 7de47306ca mhd_align.h: fixed copy-paste error 2021-07-21 23:01:06 +03:00
Evgeny Grin (Karlson2k) 561c52c70a MSVC projects: added missing header 2021-07-21 23:01:06 +03:00
Evgeny Grin (Karlson2k) f45803ab5b MSVC project: defaults to Vista+ 2021-07-21 23:01:05 +03:00
Evgeny Grin (Karlson2k) 2c42613ce8 Restructured files in MSVC project 2021-07-21 23:00:55 +03:00
Christian Grothoff ecf9dbb690 -fix typo 2021-07-18 13:52:12 +02:00
Christian Grothoff 41a3f2398a -make spell checker happy 2021-07-14 14:37:16 +02:00
Christian Grothoff 39dddad671 -fix FTBFS: ssize_t needs stdlib.h on my system 2021-07-13 23:50:04 +02:00
Evgeny Grin (Karlson2k) e1693575ed response: process "Connection" header in a special manner 2021-07-05 17:01:21 +03:00
Evgeny Grin (Karlson2k) ed3daed305 Added MHD_str_remove_tokens_caseless_() function 2021-07-05 17:01:21 +03:00
Evgeny Grin (Karlson2k) ada4c2ed55 Added MHD_str_remove_token_caseless_() function
Function removes specified token from the input string and
normalizes list of tokens.
2021-07-05 17:01:21 +03:00
Evgeny Grin (Karlson2k) 63dd1bff0f MHD_del_response_header(): removed unused variable 2021-07-05 17:01:21 +03:00
Evgeny Grin (Karlson2k) d06ee976c0 Corrected internal doxy 2021-07-05 17:01:16 +03:00
Evgeny Grin (Karlson2k) 8e0fdcad6c mhd_str: minor optimisation 2021-06-23 11:40:14 +03:00
Evgeny Grin (Karlson2k) d51a5ce419 mhd_str: minor code refactoring
Repeated caseless chars comparison function moved to static
inline function.
2021-06-23 11:40:14 +03:00
Evgeny Grin (Karlson2k) 64e91ef600 Use compiler built-ins for bits rotations if available 2021-06-21 15:21:03 +03:00
gre-42 441dbcfe52 websocket example: Use uint32_t instead of ulong for websocket mask 2021-06-21 14:47:16 +03:00
Evgeny Grin (Karlson2k) 0b7bac9786 daemon.c: cosmetics 2021-06-21 13:39:59 +03:00
Evgeny Grin (Karlson2k) aec976ee2f Added attributes for enums 2021-06-21 13:39:37 +03:00
Evgeny Grin (Karlson2k) 4cce973ea2 MHD_queue_response(): fixed check for HTTP/1.0 mode 2021-06-21 13:26:32 +03:00
Evgeny Grin (Karlson2k) 0560bb099c MHD_add_response_header(): improved doxy 2021-06-20 16:30:05 +03:00
Evgeny Grin (Karlson2k) 32a9f1dc4d response: added MHD_get_response_element_n() function 2021-06-20 16:25:21 +03:00
Evgeny Grin (Karlson2k) 91a0d62efd internal.h: reordered items 2021-06-20 16:13:41 +03:00
Evgeny Grin (Karlson2k) 26288b1101 Response: fixed order of the headers
Fixed reversed order of headers in the response.
Is was commented the order of headers should be reversed
before sending response, but it was never implemented before.
2021-06-20 15:21:36 +03:00
Evgeny Grin (Karlson2k) 1afe8c4a35 mhd_str: fixed typo in a comment 2021-06-13 20:54:11 +03:00
Evgeny Grin (Karlson2k) a60173864e MHD_queue_response(): refuse 1xx codes in HTTP/1.0 mode
See https://datatracker.ietf.org/doc/html/rfc7231#section-6.2
2021-06-13 20:45:46 +03:00
Evgeny Grin (Karlson2k) bbbcf4838a MHD_add_response_header: added detailed comment about automatic headers
Automatic header handling was not documented, while this mechanism is
important for MHD functionality and the absence of this description
resulted in wrong assumptions made by users.
2021-06-13 20:45:46 +03:00
Evgeny Grin (Karlson2k) 3bd79348f0 MHD_create_response_*() functions: improved doxy
* Clearer description of how buffer/FD/ other is used
* Sync .c/.h doxy
* Clarification for HEAD requests answering
2021-06-13 13:42:12 +03:00
Evgeny Grin (Karlson2k) fae8fc5be9 uncrustify.cfg minor fix 2021-06-13 13:42:12 +03:00
Evgeny Grin (Karlson2k) 0a4537e86c connection.c: fixed wrong caseless HTTP method comparison
Method strings much much be matched as case-sensitive
2021-06-12 21:04:21 +03:00
Evgeny Grin (Karlson2k) 8391cfa210 connection.c: added detection of standard HTTP methods
Detection was added only for basic methods as defined in RFC7231
2021-06-12 20:40:01 +03:00
Evgeny Grin (Karlson2k) d4a6985d12 uncrustify.cfg: updated 2021-06-12 20:30:58 +03:00
Evgeny Grin (Karlson2k) c7a0cf287b Corrected naming enum MHD_HTTP_version -> enum MHD_HTTP_Version 2021-06-12 18:30:28 +03:00
Evgeny Grin (Karlson2k) 386b21da1b test_tls_options: multiple fixes
* SSLv3 is not supported anymore by TLS libs and CURL
* libcurl accepts requested and later versions of TLS,
  MHD and CURL TLS versions in second test must be reversed
* Test works with any TLS backend with a few exceptions
2021-06-10 21:20:44 +03:00
Evgeny Grin (Karlson2k) 6dbe969d4d tests: removed curl_uses_nss_ssl(), used new backend identification functions 2021-06-10 21:09:25 +03:00
Evgeny Grin (Karlson2k) 6c84bcf3fe HTTPS tests: added new backend identification functions 2021-06-10 20:45:29 +03:00
Evgeny Grin (Karlson2k) 77a30308be HTTPS tests: ensure that CURL options were applied 2021-06-10 19:41:28 +03:00