libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] [PATCH] Correct macro names when building without messag


From: Jan Palus
Subject: [libmicrohttpd] [PATCH] Correct macro names when building without messages
Date: Sun, 4 Feb 2024 01:00:43 +0100

small typo likely from copy&paste causing macro names to be different
between builds with and without messages resulting in compilation
failure if configured with --disable-messages

Signed-off-by: Jan Palus <jpalus@fastmail.com>
---
 src/microhttpd/connection.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 2bb37f7f..5f310c8e 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -381,7 +381,7 @@
   "<body>HTTP request has invalid character in footer.</body>" \
   "</html>"
 #else
-#define ERR_RSP_INVALID_CHR_IN_HEADER ""
+#define ERR_RSP_INVALID_CHR_IN_FOOTER ""
 #endif
 
 /**
@@ -394,7 +394,7 @@
   "<body>HTTP request header line has no colon character.</body>" \
   "</html>"
 #else
-#define ERR_RSP_INVALID_CHR_IN_HEADER ""
+#define ERR_RSP_HEADER_WITHOUT_COLON ""
 #endif
 
 /**
-- 
2.43.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]