From d89117430db3dc5d69420509cae55e91688dad12 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 6 Sep 2024 12:49:32 +0900 Subject: [PATCH] Minor tweaks/fixes Add example config using "_FILE" variables. Increase limit of config value size from 256 to 1024. --- example_config/example.config | 32 ++++++++++++++++++++++++++++++-- example_config/inner.html | 26 ++++++++++++++++++++++---- src/constants.h | 2 +- 3 files changed, 53 insertions(+), 7 deletions(-) diff --git a/example_config/example.config b/example_config/example.config index 4310212..61f1dd7 100644 --- a/example_config/example.config +++ b/example_config/example.config @@ -1,6 +1,34 @@ PATH=/ -HTML='''

Test HTML


-

{{{Var}}}

+HTML=''' + + + + + +

Test HTML


+

{{{Var}}}

+

To inner.

+ ''' Var='''Test var value''' diff --git a/example_config/inner.html b/example_config/inner.html index 61b80b8..7de1791 100644 --- a/example_config/inner.html +++ b/example_config/inner.html @@ -1,15 +1,33 @@

Inner

{{{VAR_FILE}}} + +
+Back. diff --git a/src/constants.h b/src/constants.h index 12d0189..abd7302 100644 --- a/src/constants.h +++ b/src/constants.h @@ -19,7 +19,7 @@ #define C_SIMPLE_HTTP_SLEEP_NANOS 1000000 #define C_SIMPLE_HTTP_RECV_BUF_SIZE 1024 -#define C_SIMPLE_HTTP_CONFIG_BUF_SIZE 256 +#define C_SIMPLE_HTTP_CONFIG_BUF_SIZE 1024 #define C_SIMPLE_HTTP_QUOTE_COUNT_MAX 3 #endif