Add const statement to several variables

This commit is contained in:
Thomas Basler
2023-12-11 19:54:57 +01:00
parent ab4a872daa
commit 47e905bcfc
27 changed files with 82 additions and 87 deletions

View File

@@ -66,7 +66,7 @@ void WebApiWebappClass::init(AsyncWebServer* server)
// check client If-None-Match header vs ETag/AUTO_GIT_HASH
bool eTagMatch = false;
if (request->hasHeader("If-None-Match")) {
AsyncWebHeader* h = request->getHeader("If-None-Match");
const AsyncWebHeader* h = request->getHeader("If-None-Match");
if (strncmp(AUTO_GIT_HASH, h->value().c_str(), strlen(AUTO_GIT_HASH)) == 0) {
eTagMatch = true;
}