ESP32WebServer file download as .phps

Hello, im using an ESP32S3 as server. Im using it to download files from an SD card. If i connect to my PC, i can download jpg and txt files without any problem. But when i try with my phone (Android) it adds an phps extension to the file (e.g. data.txt.phps).

void SD_file_download(String filename)
{
  if (SD_present) 
  { 
    File download = SD_MMC.open("/"+filename);
    if (download) 
    {
      server.sendHeader("Content-Type", "text/text");
      server.sendHeader("Content-Disposition", "attachment; filename="+filename);
      server.sendHeader("Connection", "close");
      server.streamFile(download, "application/octet-stream");
      download.close();
    } else ReportFileNotPresent("download"); 
  } else ReportSDNotPresent();
}

"text/text" is not a valid MIME type. In fact, remove the Content-Type header entirely, since apparently the MIME type is specified with the streamFile function. There, it should be "text/plain" for text files.

That worked, thank you.