Skip to content

Commit

Permalink
fix(server): Send index.htm (#6)
Browse files Browse the repository at this point in the history
* Send index.htm

* Update src.ino
  • Loading branch information
MatiasG19 authored Nov 5, 2023
1 parent 31c8e83 commit e0a81e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/src.ino
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ void sendResponse(String request, EthernetClient client) {

// Send file to client
if (request == "") {
request = "index.htm";
client.println("Content-Type: text/html\n\r\n\r");
File webFile = SD.open(request);
if (webFile) {
Expand Down

0 comments on commit e0a81e6

Please sign in to comment.