aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-04-24 17:30:26 +0200
committerChristian Grothoff <christian@grothoff.org>2017-04-24 17:30:26 +0200
commitb57456c2e6536764ad7b065c70b999f876269a2c (patch)
tree02f8b5853232574015a910715a051621c178bdb4 /doc
parente95ec4874da57b153ecea27fa553ae8a19b4a280 (diff)
downloadlibmicrohttpd-b57456c2e6536764ad7b065c70b999f876269a2c.tar.gz
libmicrohttpd-b57456c2e6536764ad7b065c70b999f876269a2c.zip
relax space-in-field-name checks only if new MHD_USE_PERMISSIVE_CHECKS flag is set
Diffstat (limited to 'doc')
-rw-r--r--doc/libmicrohttpd.texi11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 219a19af..7e95155b 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -12,7 +12,7 @@ This manual is for GNU libmicrohttpd
12(version @value{VERSION}, @value{UPDATED}), a library for embedding 12(version @value{VERSION}, @value{UPDATED}), a library for embedding
13an HTTP(S) server into C applications. 13an HTTP(S) server into C applications.
14 14
15Copyright @copyright{} 2007--2016 Christian Grothoff 15Copyright @copyright{} 2007--2017 Christian Grothoff
16 16
17@quotation 17@quotation
18Permission is granted to copy, distribute and/or modify this document 18Permission is granted to copy, distribute and/or modify this document
@@ -496,7 +496,7 @@ that IPv4 addresses are returned by MHD in the IPv6-mapped format
496(the 'struct sockaddr_in6' format will be used for IPv4 and IPv6). 496(the 'struct sockaddr_in6' format will be used for IPv4 and IPv6).
497 497
498@item MHD_USE_PEDANTIC_CHECKS 498@item MHD_USE_PEDANTIC_CHECKS
499Be pedantic about the protocol (as opposed to as tolerant as possible). 499Be pedantic about the protocol.
500Specifically, at the moment, this flag causes MHD to reject HTTP 500Specifically, at the moment, this flag causes MHD to reject HTTP
5011.1 connections without a @code{Host} header. This is required by the 5011.1 connections without a @code{Host} header. This is required by the
502standard, but of course in violation of the ``be as liberal as possible 502standard, but of course in violation of the ``be as liberal as possible
@@ -504,6 +504,13 @@ in what you accept'' norm. It is recommended to turn this @strong{ON}
504if you are testing clients against MHD, and @strong{OFF} in 504if you are testing clients against MHD, and @strong{OFF} in
505production. 505production.
506 506
507@item MHD_USE_PERMISSIVE_CHECKS
508Be permissive about the protocol, allowing slight deviations that are
509technically not allowed by the RFC. Specifically, at the moment, this
510flag causes MHD to allow spaces in header field names. This is
511disallowed by the standard.
512
513
507@item MHD_USE_POLL 514@item MHD_USE_POLL
508@cindex FD_SETSIZE 515@cindex FD_SETSIZE
509@cindex poll 516@cindex poll