[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 04/08: Disallowed successful responses for CONNECT reque
From: |
gnunet |
Subject: |
[libmicrohttpd] 04/08: Disallowed successful responses for CONNECT requests |
Date: |
Sun, 13 Mar 2022 18:33:27 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 2ebe7a859cdfa1860067bca65bbd642a04687e95
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Mar 11 15:57:41 2022 +0300
Disallowed successful responses for CONNECT requests
MHD currently does not support CONNECT pass-through.
However, support could be added relatively easily.
Contact MHD maintainers if you need CONNECT support.
---
src/microhttpd/connection.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index e16d5ed1..465e0326 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -5264,6 +5264,17 @@ MHD_queue_response (struct MHD_Connection *connection,
return MHD_NO;
}
}
+ if ( (MHD_HTTP_MTHD_CONNECT == connection->http_mthd) &&
+ (2 == status_code / 100) )
+ {
+#ifdef HAVE_MESSAGES
+ MHD_DLOG (daemon,
+ _ ("Successful (%u) response code cannot be used to answer " \
+ "\"CONNECT\" request!\n"),
+ (status_code));
+#endif
+ return MHD_NO;
+ }
#ifdef HAVE_MESSAGES
if ( (0 != (MHD_RF_INSANITY_HEADER_CONTENT_LENGTH & response->flags)) &&
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (1a46bfd6 -> f2565a62), gnunet, 2022/03/13
- [libmicrohttpd] 04/08: Disallowed successful responses for CONNECT requests,
gnunet <=
- [libmicrohttpd] 03/08: Added warning in log if application-defined Content-Length is used, gnunet, 2022/03/13
- [libmicrohttpd] 02/08: Added separate internal "responseIcy" flag., gnunet, 2022/03/13
- [libmicrohttpd] 01/08: upgrade response: set response size to zero, gnunet, 2022/03/13
- [libmicrohttpd] 06/08: MHD_queue_response(): refuse 101 code when not supported, gnunet, 2022/03/13
- [libmicrohttpd] 05/08: MHD_queue_response(): clarified log message, gnunet, 2022/03/13
- [libmicrohttpd] 07/08: Simplified function for determining needs for reply body and headers, gnunet, 2022/03/13
- [libmicrohttpd] 08/08: MHD_set_response_options(): check whether the new flags could be used, gnunet, 2022/03/13