aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
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 /src/include/microhttpd.h
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 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index d2aed65e..fcb617d8 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of libmicrohttpd 2 This file is part of libmicrohttpd
3 Copyright (C) 2006-2016 Christian Grothoff (and other contributing authors) 3 Copyright (C) 2006-2017 Christian Grothoff (and other contributing authors)
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
@@ -1136,7 +1136,16 @@ enum MHD_FLAG
1136 * This is combination of #MHD_USE_AUTO and #MHD_USE_INTERNAL_POLLING_THREAD 1136 * This is combination of #MHD_USE_AUTO and #MHD_USE_INTERNAL_POLLING_THREAD
1137 * flags. 1137 * flags.
1138 */ 1138 */
1139 MHD_USE_AUTO_INTERNAL_THREAD = MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD 1139 MHD_USE_AUTO_INTERNAL_THREAD = MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD,
1140
1141 /**
1142 * Be permissive about the protocol, allowing slight deviations that
1143 * are technically not allowed by the RFC.
1144 * Specifically, at the moment, this flag causes MHD to
1145 * allow spaces in header field names. This is
1146 * disallowed by the standard.
1147 */
1148 MHD_USE_PERMISSIVE_CHECKS = 131072
1140 1149
1141}; 1150};
1142 1151