Commit Graph
3687 Commits
Author SHA1 Message Date
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
Evgeny Grin (Karlson2k) 9166f4760d connection.c: log message typo fixed 2021-06-08 10:00:01 +03:00
Evgeny Grin (Karlson2k) e8e4d70c4a Response: disallow two "Transfer-Encoding" headers 2021-06-08 09:54:40 +03:00
Evgeny Grin (Karlson2k) b0400609fa keepalive_possible: do not use "Keep-Alive" with read-closed connections 2021-06-08 09:54:39 +03:00
Evgeny Grin (Karlson2k) 45c7e2bc39 MHD_queue_response: check whether provided status code is a three digits code 2021-06-08 09:54:39 +03:00
Evgeny Grin (Karlson2k) 2106f6f2bb connection.c: added TODO comment 2021-06-08 09:54:39 +03:00
Evgeny Grin (Karlson2k) 7d53b1eb9e try_ready_chunked_body: handle large chunks properly
Do not try to call user call-back with buffer larger
than MHD is able to process.
2021-06-08 09:54:38 +03:00
Evgeny Grin (Karlson2k) 149eaabc67 Added TODO comments and corrected log message 2021-06-05 22:16:15 +03:00
Evgeny Grin (Karlson2k) 6123b2ab2b Fixed header size calculation.
Previous calculation was incorrect, header size was always
negative (overflow) number.
New calculation takes into account full header size, including
the last empty line with linefeeds.
2021-06-05 21:18:55 +03:00
Evgeny Grin (Karlson2k) 732bc0a0c3 connection: fixed wrong read buffer reallocation 2021-06-04 15:52:38 +03:00
Evgeny Grin (Karlson2k) 2ccc281a69 connection: handle large read-ahead situation 2021-06-04 15:22:22 +03:00
Evgeny Grin (Karlson2k) 9ca0b36ab0 connection: do not spend time on building footers for zero-sized responses
Footers are not used for non-chunked responses.
2021-06-04 12:59:45 +03:00