We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 491e45e commit fc1f0aaCopy full SHA for fc1f0aa
src/firmware/ESPcode/FTPserver.cpp
@@ -14,7 +14,7 @@ FTPserver::FTPserver(int reset)
14
void FTPserver::Index(WiFiClient* client)
15
{
16
SPIFFS.begin();
17
- File file = SPIFFS.open("", "r"); // to do if gzip or not
+ File file = SPIFFS.open("/index.html", "r"); // to do if gzip or not
18
19
if(file)
20
@@ -23,7 +23,7 @@ void FTPserver::Index(WiFiClient* client)
23
byte buffer[1024];
24
int i = 0;
25
26
- client->print(SendHeader(true)); //depends on encoding
+ client->print(SendHeader(false)); //depends on encoding
27
while(fsize > 0)
28
29
i = (fsize < 1024) ? fsize : 1024;
0 commit comments