Skip to content

Commit

Permalink
Prevent unnecessary copies
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Sep 29, 2024
1 parent a62ad09 commit ee73b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CaptivePortalInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ CaptivePortalInstance::CaptivePortalInstance()
m_webServer.serveStatic("/", m_fileSystem, "/www/", "max-age=3600").setDefaultFile("index.html").setSharedEtag(fsHash);

// Redirecting connection tests to the captive portal, triggering the "login to network" prompt
m_webServer.onNotFound([softAPURL](AsyncWebServerRequest* request) { request->redirect(softAPURL); });
m_webServer.onNotFound([&softAPURL](AsyncWebServerRequest* request) { request->redirect(softAPURL); });
} else {
OS_LOGE(TAG, "/www/index.html or hash files not found, serving error page");

Expand Down

0 comments on commit ee73b41

Please sign in to comment.