Skip to content

Commit

Permalink
Use const
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Jun 27, 2024
1 parent 4b924f0 commit 26ae51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/REST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Mycila::Task initRestApiTask("Init REST API", [](void* params) {
.on("/api/config", HTTP_POST, [](AsyncWebServerRequest* request) {
std::map<const char*, String> settings;
for (size_t i = 0, max = request->params(); i < max; i++) {
AsyncWebParameter* p = request->getParam(i);
const AsyncWebParameter* p = request->getParam(i);
if (p->isPost() && !p->isFile()) {
const char* keyRef = config.keyRef(p->name().c_str());
settings[keyRef] = p->value();
Expand Down

0 comments on commit 26ae51a

Please sign in to comment.