8000 Merge pull request #41 from MorpheusDe97/patch-1 · Lackmann1994/esp32_https_server@8472cc0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8472cc0

Browse files
authored
Merge pull request fhessel#41 from MorpheusDe97/patch-1
Minor typo fix
2 parents a55066b + 7497f34 commit 8472cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
0