FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update REST-API.ino · bligeti/esp32_https_server@7497f34 · GitHub

Repository navigation

Commit 7497f34

Browse files
authored
Update REST-API.ino
1 parent a55066b commit 7497f34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/REST-API/REST-API.ino‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void handleSPIFFS(HTTPRequest * req, HTTPResponse * res) {
307307

308308
// Check if the file exists
309309
if (!SPIFFS.exists(filename.c_str())) {
310-
// Send "405 Method not allowed" as response
310+
// Send "404 Not Found" as response, as the file doesn't seem to exist
311311
res->setStatusCode(404);
312312
res->setStatusText("Not found");
313313
res->println("404 Not Found");

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL