aboutsummaryrefslogtreecommitdiff
path: root/src/examples/minimal_example_empty_tls.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-12-22 16:30:12 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-12-22 18:25:49 +0300
commit5c3a61d68c04ebfd62695fa2a90e6212e42a1cae (patch)
tree6c1c02fde82d704d8233cca42d1719fe4c75eca9 /src/examples/minimal_example_empty_tls.c
parent42be9415cbcdb23463a86fbee612b3809bf7ed0c (diff)
downloadlibmicrohttpd-5c3a61d68c04ebfd62695fa2a90e6212e42a1cae.tar.gz
libmicrohttpd-5c3a61d68c04ebfd62695fa2a90e6212e42a1cae.zip
Added new daemon option MHD_OPTION_CLIENT_DISCIPLINE_LV
Reject URIs with spaces as per RFC. Fixed check for space before colon in headers (previously it was checked only when MHD was NOT strict). Reject HTTP/1.1 requests without host by default (as per RFC).
Diffstat (limited to 'src/examples/minimal_example_empty_tls.c')
-rw-r--r--src/examples/minimal_example_empty_tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/minimal_example_empty_tls.c b/src/examples/minimal_example_empty_tls.c
index 465f7492..d0a4d6ff 100644
--- a/src/examples/minimal_example_empty_tls.c
+++ b/src/examples/minimal_example_empty_tls.c
@@ -160,7 +160,7 @@ main (int argc,
160 (uint16_t) port, 160 (uint16_t) port,
161 NULL, NULL, &ahc_echo, NULL, 161 NULL, NULL, &ahc_echo, NULL,
162 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, 162 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120,
163 MHD_OPTION_STRICT_FOR_CLIENT, (int) 1, 163 MHD_OPTION_CLIENT_DISCIPLINE_LVL, (int) 1,
164 /* Optionally, the gnutls_load_file() can be used to 164 /* Optionally, the gnutls_load_file() can be used to
165 load the key and the certificate from file. */ 165 load the key and the certificate from file. */
166 MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, 166 MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem,