aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
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/microhttpd/internal.h
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/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 78481b21..9f5ed442 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -2104,9 +2104,10 @@ struct MHD_Daemon
2104 unsigned int per_ip_connection_limit; 2104 unsigned int per_ip_connection_limit;
2105 2105
2106 /** 2106 /**
2107 * Be neutral (zero), strict (1) or permissive (-1) to client. 2107 * The strictness level for parsing of incoming data.
2108 * @see #MHD_OPTION_CLIENT_DISCIPLINE_LVL
2108 */ 2109 */
2109 int strict_for_client; 2110 int client_discipline;
2110 2111
2111 /** 2112 /**
2112 * True if SIGPIPE is blocked 2113 * True if SIGPIPE is blocked