Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Internal refactoring: moved all request-related members to separate structure | Evgeny Grin (Karlson2k) | 2022-08-06 |
| | | | | This should improve readability of the code and simplify reset. | ||
* | MHD_add_response_entry(): refactoring + added internal function | Evgeny Grin (Karlson2k) | 2022-07-28 |
| | |||
* | Fixed function name introduced by 3eb2fb6dfb302a7ffbc74174d37fa047e3a94036 | Evgeny Grin (Karlson2k) | 2022-06-13 |
| | | | | Thanks Christian for spotting it. | ||
* | Fixed very rare data races when closing upgraded connection | Evgeny Grin (Karlson2k) | 2022-06-08 |
| | |||
* | response.c: better handle broken situation | Evgeny Grin (Karlson2k) | 2022-05-29 |
| | |||
* | Added missing in 'switch' enum values (no functional change) | Evgeny Grin (Karlson2k) | 2022-05-16 |
| | |||
* | MHD_create_response_empty(): fixed typo | Evgeny Grin (Karlson2k) | 2022-05-14 |
| | |||
* | Fixed additional compiler warnings on W32 | Evgeny Grin (Karlson2k) | 2022-05-14 |
| | |||
* | MHD_create_response_from_buffer_copy(): fixed doxy | Evgeny Grin (Karlson2k) | 2022-05-14 |
| | |||
* | response: fixed copy-paste error introduced by ↵ | Evgeny Grin (Karlson2k) | 2022-04-28 |
| | | | | b8e13a57a0035f1f416d593d64115bd4417c2028 | ||
* | Fixes related to implicit cast warnings | Evgeny Grin (Karlson2k) | 2022-04-27 |
| | |||
* | Fixed compiler warnings of implicit casting, which could change the value | Evgeny Grin (Karlson2k) | 2022-04-27 |
| | |||
* | Added new API function MHD_create_response_from_buffer_copy() | Evgeny Grin (Karlson2k) | 2022-04-19 |
| | |||
* | Added workaround for external APIs | Evgeny Grin (Karlson2k) | 2022-04-19 |
| | | | | | | Some APIs require non-const pointer even when data is supposed to be unmodifiable. Added workaround to deal with such APIs without compiler warnings. | ||
* | Fixed missing 'const' qualifiers | Evgeny Grin (Karlson2k) | 2022-04-19 |
| | |||
* | Added new API function MHD_create_response_from_buffer_static() | Evgeny Grin (Karlson2k) | 2022-04-19 |
| | |||
* | Refactored create response functions. | Evgeny Grin (Karlson2k) | 2022-04-18 |
| | | | | Moved away from the deprecated function, shortened typical call chain. | ||
* | Added _MHD_EXTERN to the all public functions definitions | Evgeny Grin (Karlson2k) | 2022-04-18 |
| | | | | | Previously it was inconsistent, some function definitions used _MHD_EXTERN, while other definitions was used without _MHD_EXTERN. | ||
* | refactoring: use 'const' for response buffers | Evgeny Grin (Karlson2k) | 2022-04-18 |
| | | | | The response buffers shouldn't be modifiable. | ||
* | Refactoring: different types for response and request headers | Evgeny Grin (Karlson2k) | 2022-04-17 |
| | | | | | Request headers are always read-only (const char *), while response headers are modifiable. Should help with catching errors in code. | ||
* | MHD_create_response_empty(): added new function | Evgeny Grin (Karlson2k) | 2022-03-19 |
| | |||
* | MHD_create_response_from_iovec(): fixed formatting | Evgeny Grin (Karlson2k) | 2022-03-19 |
| | |||
* | Updated doxy for some of the MHD_create_response_*() functions | Evgeny Grin (Karlson2k) | 2022-03-18 |
| | |||
* | Added MHD_RF_HEAD_ONLY_RESPONSE response flag | Evgeny Grin (Karlson2k) | 2022-03-17 |
| | | | | | Useful if application needs to send reply for HEAD request, but creation of full reply body is costly. | ||
* | Disallowed MHD_SIZE_UNKNOWN for buffer-based responses | Evgeny Grin (Karlson2k) | 2022-03-14 |
| | |||
* | MHD_set_response_options(): check whether the new flags could be used | Evgeny Grin (Karlson2k) | 2022-03-13 |
| | |||
* | upgrade response: set response size to zero | Evgeny Grin (Karlson2k) | 2022-03-08 |
| | | | | Upgrade responses do not have body, so zero must be used as the body size. | ||
* | response.c: fixed coding style | Evgeny Grin (Karlson2k) | 2022-03-07 |
| | |||
* | response: added automatic flag MHD_RAF_HAS_CONTENT_LENGTH | Evgeny Grin (Karlson2k) | 2022-03-07 |
| | |||
* | Improved doxy for MHD_add_response_header() | Evgeny Grin (Karlson2k) | 2021-10-30 |
| | |||
* | MHD_del_response_header(): documented new behaviors | Evgeny Grin (Karlson2k) | 2021-10-16 |
| | |||
* | Improved and fixed doxy for MHD_add_response_header() | Evgeny Grin (Karlson2k) | 2021-09-26 |
| | |||
* | Fixed analyzer errors: cast enum values to enum types. | Evgeny Grin (Karlson2k) | 2021-09-07 |
| | | | | | | | | | | | | | | | | | | enum values in C are not enum types, they are just numbers. By default numbers are mapped to signed type, like 'int'. enum types are represented with usigned types, like 'unsigned int', unless values of enum contains negative numbers. If bitwise NOT performed on pure enum value, which is automatically mapped to 'int', then result is negative number. Result of casting of negative number to unsigned type depends on architecture and may be unexpected. By explicitly casting enum values to enum types, values are converted to correct representation type, like 'unsgined int'. Result of bitwise NOT for unsigned type is predictable and does not need to be casted to the final type. Yes, casting of enum values to the same enum type looks strange, but this is the only way to properly handle bitwise NOT for enums in C. | ||
* | Fixed memory leak introduced by 39eb60df61232bfc7da8e2f7afc48efcad0f1019 | Evgeny Grin (Karlson2k) | 2021-08-16 |
| | | | | When "Date:" header is replaced with new value, old value wasn't freed | ||
* | response.c: used stricter check for "Upgrade:" header | Evgeny Grin (Karlson2k) | 2021-08-11 |
| | |||
* | response headers: do not allow "Close" with upgrade responses | Evgeny Grin (Karlson2k) | 2021-08-11 |
| | |||
* | response headers: disallow space in header name, allow tab in header value | Evgeny Grin (Karlson2k) | 2021-08-01 |
| | |||
* | response header: more pre-processing, better docs | Evgeny Grin (Karlson2k) | 2021-08-01 |
| | | | | | * Disallow "Transfer-encoding: identity", not allowed by RFC * Allow only single "Date" header | ||
* | response: do not allow "Connection: keep-alive" header | Evgeny Grin (Karlson2k) | 2021-08-01 |
| | |||
* | Updated some copyrights | Evgeny Grin (Karlson2k) | 2021-07-30 |
| | |||
* | response: use macro instead of string for connection header | Evgeny Grin (Karlson2k) | 2021-07-28 |
| | |||
* | response: use auto flag for chunked encoding header | Evgeny Grin (Karlson2k) | 2021-07-28 |
| | |||
* | -fix typo | Christian Grothoff | 2021-07-18 |
| | |||
* | response: process "Connection" header in a special manner | Evgeny Grin (Karlson2k) | 2021-07-05 |
| | |||
* | MHD_del_response_header(): removed unused variable | Evgeny Grin (Karlson2k) | 2021-07-05 |
| | |||
* | MHD_add_response_header(): improved doxy | Evgeny Grin (Karlson2k) | 2021-06-20 |
| | |||
* | response: added MHD_get_response_element_n() function | Evgeny Grin (Karlson2k) | 2021-06-20 |
| | |||
* | Response: fixed order of the headers | Evgeny Grin (Karlson2k) | 2021-06-20 |
| | | | | | | 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. | ||
* | MHD_add_response_header: added detailed comment about automatic headers | Evgeny Grin (Karlson2k) | 2021-06-13 |
| | | | | | | 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. | ||
* | MHD_create_response_*() functions: improved doxy | Evgeny Grin (Karlson2k) | 2021-06-13 |
| | | | | | | * Clearer description of how buffer/FD/ other is used * Sync .c/.h doxy * Clarification for HEAD requests answering |