From 9c075ada7341a0a39670494a0d6f24587bcf7514 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 19 Aug 2022 17:01:21 +0200 Subject: [PATCH] fix call of custom dynamic variable handler --- include/HTTPServer.h | 2 +- src/HTTPPrintSystem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/HTTPServer.h b/include/HTTPServer.h index e9e3ffe..337df36 100644 --- a/include/HTTPServer.h +++ b/include/HTTPServer.h @@ -46,7 +46,7 @@ #define MAX_DYNVAR_LENGTH 64 #define MAX_INCFILE_LENGTH 1024 -#define HTTP_SERVER_DEBUG_LEVEL 1 +#define HTTP_SERVER_DEBUG_LEVEL 0 typedef enum { diff --git a/src/HTTPPrintSystem.c b/src/HTTPPrintSystem.c index 2713bd6..06d3e95 100644 --- a/src/HTTPPrintSystem.c +++ b/src/HTTPPrintSystem.c @@ -578,7 +578,7 @@ int HTTPPrint(httpd_req_t *req, char *buf, char *var) if (!fnd) { if (HTTPPrintCust != NULL) - HTTPPrintCust(req, buf, var); + return HTTPPrintCust(req, buf, var); else HTTPPrint_DEF(VarData, NULL);