From 6cf7f4e4a9976ee27518d800b5e82248649e349a Mon Sep 17 00:00:00 2001 From: Bogdan Pilyugin Date: Thu, 16 Mar 2023 15:39:31 +0200 Subject: [PATCH] allow dynamic variables in js files --- extlibs/libespfs | 2 +- src/HTTPServer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extlibs/libespfs b/extlibs/libespfs index a646e3e..03ff681 160000 --- a/extlibs/libespfs +++ b/extlibs/libespfs @@ -1 +1 @@ -Subproject commit a646e3ee0594ec2301e9b3fe6373ea274eb39e39 +Subproject commit 03ff681a61cb03a43c6f008601a6e6090e9df2bd diff --git a/src/HTTPServer.c b/src/HTTPServer.c index 80bc246..f13d364 100644 --- a/src/HTTPServer.c +++ b/src/HTTPServer.c @@ -355,7 +355,7 @@ static esp_err_t GETHandler(httpd_req_t *req) } //check if the file can contains dynamic variables - if (IS_FILE_EXT(filename, ".html") || IS_FILE_EXT(filename, ".json")) + if (IS_FILE_EXT(filename, ".html") || IS_FILE_EXT(filename, ".json") || IS_FILE_EXT(filename, ".js")) isDynamicVars = true; do {