Skip to content

Commit fc66fae

Browse files
me21me-no-dev
authored andcommitted
Allow to override default template placeholder value with #define during compilation. (me-no-dev#366)
Signed-off-by: Alexandr Zarubkin <[email protected]>
1 parent 566acfb commit fc66fae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/WebResponseImpl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ class AsyncAbstractResponse: public AsyncWebServerResponse {
5959
virtual size_t _fillBuffer(uint8_t *buf __attribute__((unused)), size_t maxLen __attribute__((unused))) { return 0; }
6060
};
6161

62+
#ifndef TEMPLATE_PLACEHOLDER
6263
#define TEMPLATE_PLACEHOLDER '%'
64+
#endif
65+
6366
#define TEMPLATE_PARAM_NAME_LENGTH 32
6467
class AsyncFileResponse: public AsyncAbstractResponse {
6568
using File = fs::File;

0 commit comments

Comments
 (0)