mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-04-14 13:13:34 +02:00
Add const statement to several variables
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user