Skip to content

Commit

Permalink
* tests/libtest.c (_answer_to_connection): Switch off Content-Length …
Browse files Browse the repository at this point in the history
…sanity checks in MHD
  • Loading branch information
rockdaboot committed Oct 29, 2019
1 parent 45349f5 commit 5e54cda
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/libtest.c
Expand Up @@ -606,6 +606,13 @@ static int _answer_to_connection(
ret = MHD_queue_response(connection, MHD_HTTP_OK, response);
}

// switch off Content-Length sanity checks
#if MHD_VERSION >= 0x00096800
MHD_set_response_options(response,
MHD_RF_INSANITY_HEADER_CONTENT_LENGTH,
MHD_RO_END);
#endif

// add available headers
for (const char **header = request_url->headers; *header; header++) {
const char *header_value = strchr(*header, ':');
Expand Down

0 comments on commit 5e54cda

Please sign in to comment.