From fc66fae6a96091143b873834231554aa013e084f Mon Sep 17 00:00:00 2001 From: Alexandr Zarubkin Date: Tue, 24 Jul 2018 21:26:46 +0300 Subject: [PATCH] Allow to override default template placeholder value with #define during compilation. (#366) Signed-off-by: Alexandr Zarubkin --- src/WebResponseImpl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/WebResponseImpl.h b/src/WebResponseImpl.h index e746e77..9a64e3a 100644 --- a/src/WebResponseImpl.h +++ b/src/WebResponseImpl.h @@ -59,7 +59,10 @@ class AsyncAbstractResponse: public AsyncWebServerResponse { virtual size_t _fillBuffer(uint8_t *buf __attribute__((unused)), size_t maxLen __attribute__((unused))) { return 0; } }; +#ifndef TEMPLATE_PLACEHOLDER #define TEMPLATE_PLACEHOLDER '%' +#endif + #define TEMPLATE_PARAM_NAME_LENGTH 32 class AsyncFileResponse: public AsyncAbstractResponse { using File = fs::File;