aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-25 14:40:02 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-25 14:43:36 +0200
commit185f740e0684a8758cbf381fe5c44b3ed72d4a40 (patch)
tree854e7f65dede4766b179bf875b68e4aeeb453a9e /doc
parent3e2ba2b1ced0b4c9d13961e89e43c3932399f6d6 (diff)
downloadlibmicrohttpd-185f740e0684a8758cbf381fe5c44b3ed72d4a40.tar.gz
libmicrohttpd-185f740e0684a8758cbf381fe5c44b3ed72d4a40.zip
allow clients to override sanity check for content-length header
Diffstat (limited to 'doc')
-rw-r--r--doc/libmicrohttpd.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 99f0e997..4814b3c6 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -776,6 +776,15 @@ in header field names. This is disallowed by the standard.
776It is not recommended to set it to -1 on publicly available servers as 776It is not recommended to set it to -1 on publicly available servers as
777it may potentially lower level of protection. 777it may potentially lower level of protection.
778 778
779@item MHD_OPTION_SERVER_INSANITY
780@cindex testing
781Allows the application to disable certain sanity precautions in MHD. With
782these, the client can break the HTTP protocol, so this should never be used in
783production. The options are, however, useful for testing HTTP clients against
784"broken" server implementations. This argument must be followed by an
785@code{unsigned int}, corresponding to an @code{enum MHD_DisableSanityCheck}.
786
787Right now, no sanity checks can be disabled.
779 788
780@item MHD_OPTION_SOCK_ADDR 789@item MHD_OPTION_SOCK_ADDR
781@cindex bind, restricting bind 790@cindex bind, restricting bind
@@ -1207,6 +1216,11 @@ GET / HTTP/1.1
1207 1216
1208as the ``Host'' header is missing and is mandatory in HTTP 1.1, but it 1217as the ``Host'' header is missing and is mandatory in HTTP 1.1, but it
1209should succeed when interpreted with HTTP 1.0. 1218should succeed when interpreted with HTTP 1.0.
1219
1220@item MHD_RF_INSANITY_HEADER_CONTENT_LENGTH
1221Disable sanity check preventing clients from manually
1222setting the HTTP content length option.
1223
1210@end table 1224@end table
1211@end deftp 1225@end deftp
1212 1226