Skip to content

Commit

Permalink
Change /ota to /update, which is more common
Browse files Browse the repository at this point in the history
  • Loading branch information
steff393 committed Jun 10, 2021
1 parent 9d375cb commit dd60101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void webServer_begin() {
});

// OTA via http, based on https://gist.github.com/JMishou/60cb762047b735685e8a09cd2eb42a60
server.on("/ota", HTTP_GET, [](AsyncWebServerRequest *request){
server.on("/update", HTTP_GET, [](AsyncWebServerRequest *request){
AsyncWebServerResponse *response = request->beginResponse(200, "text/html", serverIndex);
response->addHeader("Connection", "close");
response->addHeader("Access-Control-Allow-Origin", "*");
Expand Down

0 comments on commit dd60101

Please sign in to comment.