aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
Commit message (Collapse)AuthorAge
* connection.c: added asserts for connection's states processing logicEvgeny Grin (Karlson2k)2022-09-27
|
* connection.c: fixed typo in commentEvgeny Grin (Karlson2k)2022-09-27
|
* Removed one debug member from release buildsEvgeny Grin (Karlson2k)2022-09-27
|
* Renamed request processing states for clarity and readabilityEvgeny Grin (Karlson2k)2022-09-27
|
* connection: skip no-op calling of body generation functions when response ↵Evgeny Grin (Karlson2k)2022-09-27
| | | | body is not used
* gen_auth: added support for two authorization headers in requestEvgeny Grin (Karlson2k)2022-08-09
|
* Internal refactoring: moved all reply-related members to separate structureEvgeny Grin (Karlson2k)2022-08-09
|
* Internal refactoring: moved all request-related members to separate structureEvgeny Grin (Karlson2k)2022-08-06
| | | | This should improve readability of the code and simplify reset.
* Added tracking of the request URL length.Evgeny Grin (Karlson2k)2022-06-22
| | | | | URL may have binary zeros after url-decoding, the length helps to detect such situations.
* MHD_parse_arguments_(): refactored, allow cls for the callbackEvgeny Grin (Karlson2k)2022-06-22
|
* Added TODO commentEvgeny Grin (Karlson2k)2022-06-07
|
* unsure why this was left as a TODO, fix seems trivial (EG: please check)Christian Grothoff2022-06-07
|
* -fix warningChristian Grothoff2022-06-06
|
* connection: muted compiler warningEvgeny Grin (Karlson2k)2022-06-01
|
* connection.c: fixed compiler warningsEvgeny Grin (Karlson2k)2022-05-31
|
* authentication: reworked header parsingEvgeny Grin (Karlson2k)2022-05-31
| | | | | | | | | Added single function to parse all enabled authentication schemes header strings. The parsing result is cached and reused thus avoiding repetitive header parsing. The new function correctly "unquotes" values (backslashes are removed) as required by RFC.
* connection_alloc_memory_(): made function non-staticEvgeny Grin (Karlson2k)2022-05-20
|
* MHD_connection_update_event_loop_info(): more complete TLS states handlingEvgeny Grin (Karlson2k)2022-05-16
|
* MHD_connection_handle_read(): refactored states handling at the end of the ↵Evgeny Grin (Karlson2k)2022-05-16
| | | | function
* Added missing in 'switch' enum values (no functional change)Evgeny Grin (Karlson2k)2022-05-16
|
* Fixed uninitialized value used in assertEvgeny Grin (Karlson2k)2022-05-16
|
* Use '#ifdef PARAM' instead of '#if PARAM' for configuration optionsEvgeny Grin (Karlson2k)2022-05-16
|
* Made cookie parsing optional featureEvgeny Grin (Karlson2k)2022-05-15
|
* Rewritten cookie parsing.Evgeny Grin (Karlson2k)2022-05-15
| | | | Updated to match the current RFC, fixed some edge cases.
* parse_cookie_header(): moved outside error reportingEvgeny Grin (Karlson2k)2022-05-15
|
* Return NULL for MHD_CONNECTION_INFO_CLIENT_ADDRESS if information is not ↵Evgeny Grin (Karlson2k)2022-05-14
| | | | | | available Pipe or UNIX socket connections may have no client address
* Added asserts to check for non-master daemons onlyEvgeny Grin (Karlson2k)2022-05-12
|
* MHD_set_connection_option(): reduced lock scopeEvgeny Grin (Karlson2k)2022-05-12
| | | | | | Improved handling of setting the new connection timeout. Log function is not called with lock held. Simplified logic, completely avoided locking in thread-per-connection mode
* Fixed wrong (inverted) assertsEvgeny Grin (Karlson2k)2022-05-05
|
* connection.c: fixed doxyEvgeny Grin (Karlson2k)2022-05-04
|
* Response from callback: do allow negative return amounts, except predefined ↵Evgeny Grin (Karlson2k)2022-04-27
| | | | values
* Fixed compiler warnings of implicit casting, which could change the valueEvgeny Grin (Karlson2k)2022-04-27
|
* MHD_get_connection_info(): Fixed possible unaligned accessEvgeny Grin (Karlson2k)2022-04-25
| | | | | | | Also: * Reduced number of 'MHD_Connection' members. * Fixed wrong value of returned timeout on some platforms, if timeout is too large.
* Fixed drop of 'const' when building internal error responseEvgeny Grin (Karlson2k)2022-04-19
|
* Added _MHD_EXTERN to the all public functions definitionsEvgeny Grin (Karlson2k)2022-04-18
| | | | | Previously it was inconsistent, some function definitions used _MHD_EXTERN, while other definitions was used without _MHD_EXTERN.
* connection: removed drop of 'const' qualifierEvgeny Grin (Karlson2k)2022-04-17
|
* Refactoring: different types for response and request headersEvgeny 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.
* -indentation fixChristian Grothoff2022-04-04
|
* Added MHD_RF_HEAD_ONLY_RESPONSE response flagEvgeny Grin (Karlson2k)2022-03-17
| | | | | Useful if application needs to send reply for HEAD request, but creation of full reply body is costly.
* add_user_headers(): removed unused footers supportEvgeny Grin (Karlson2k)2022-03-17
|
* MHD_queue_response(): significantly improved doxyEvgeny Grin (Karlson2k)2022-03-14
|
* Simplified function for determining needs for reply body and headersEvgeny Grin (Karlson2k)2022-03-13
|
* MHD_queue_response(): refuse 101 code when not supportedEvgeny Grin (Karlson2k)2022-03-13
|
* MHD_queue_response(): clarified log messageEvgeny Grin (Karlson2k)2022-03-13
|
* Disallowed successful responses for CONNECT requestsEvgeny Grin (Karlson2k)2022-03-11
| | | | | | MHD currently does not support CONNECT pass-through. However, support could be added relatively easily. Contact MHD maintainers if you need CONNECT support.
* Added warning in log if application-defined Content-Length is usedEvgeny Grin (Karlson2k)2022-03-10
|
* Added separate internal "responseIcy" flag.Evgeny Grin (Karlson2k)2022-03-10
| | | | | This simplified the code. Also fixed some incorrect responseCode processing without ICY mask.
* upgrade response: set response size to zeroEvgeny Grin (Karlson2k)2022-03-08
| | | | Upgrade responses do not have body, so zero must be used as the body size.
* reply: warn if manual "Content-Length" is used when this header is not allowedEvgeny Grin (Karlson2k)2022-03-07
|
* response headers: do not add automatic "Content-Length" header if response ↵Evgeny Grin (Karlson2k)2022-03-07
| | | | | | | | already has it If application used MHD_RF_INSANITY_HEADER_CONTENT_LENGTH response flag and added manual "Content-Length" header, MHD will not add the correct header.