Skip to content

Commit

Permalink
Fixed 404 errors when using littlefs
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacehuhn committed Jan 23, 2021
1 parent 4bd56ff commit 535d2d3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions esp8266_deauther/wifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,6 @@ namespace wifi {
// ================================================================
#endif /* ifdef USE_PROGMEM_WEB_FILES */

// aggressively caching static assets
if (settings::getWebSettings().use_spiffs) {
server.serveStatic("/", LittleFS, String(ap_settings.path).c_str(), "max-age=86400");
}

server.on("/run", HTTP_GET, []() {
server.send(200, str(W_TXT), str(W_OK).c_str());
String input = server.arg("cmd");
Expand Down

0 comments on commit 535d2d3

Please sign in to comment.