         HTTPresponse += fileName + "," + formatBytes( fileSize ) + "|";
       }
     }
-    webServer.send( 200, "text/plain", HTTPresponse );
+    webServer.send( 200, FPSTR( textplainHEADER ), HTTPresponse );
   });
 
   webServer.on( "/api/getpercentage", []() {

  //done with setup, start the server
  webServer.begin();

  Serial.print( "HTTP web server started at IP address: "  );
  Serial.println( WiFi.localIP() );
}



  //handle the setup page
  webServer.on( "/setup", []() {
    webServer.send( 200, FPSTR( texthtmlHEADER ), F( "setup page" ) );
  });

  /////////////////////////////////////////////////////////////////////////////////////
