Skip to content

Commit fc1f0aa

Browse files
author
Gaurab Dasgupta
committed
minor changes
1 parent 491e45e commit fc1f0aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/firmware/ESPcode/FTPserver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FTPserver::FTPserver(int reset)
1414
void FTPserver::Index(WiFiClient* client)
1515
{
1616
SPIFFS.begin();
17-
File file = SPIFFS.open("", "r"); // to do if gzip or not
17+
File file = SPIFFS.open("/index.html", "r"); // to do if gzip or not
1818

1919
if(file)
2020
{
@@ -23,7 +23,7 @@ void FTPserver::Index(WiFiClient* client)
2323
byte buffer[1024];
2424
int i = 0;
2525

26-
client->print(SendHeader(true)); //depends on encoding
26+
client->print(SendHeader(false)); //depends on encoding
2727
while(fsize > 0)
2828
{
2929
i = (fsize < 1024) ? fsize : 1024;

0 commit comments

Comments
 (0)