stephb9959
2023-03-12 11:58:55 -07:00
parent 4c8e1fe1f5
commit c35f8e1664
2 changed files with 5 additions and 3 deletions

View File

@@ -29,8 +29,10 @@ namespace OpenWifi {
SendFileContent(FileContent, "application/vnd.tcpdump.pcap", UUID + ".pcap");
else if (FileType == "gzip")
SendFileContent(FileContent, "application/gzip", UUID + ".tar.gz");
else if (FileType == "txt")
SendFileContent(FileContent, "txt/plain", UUID + ".txt");
else
SendFileContent(FileContent, "application/txt", UUID + ".txt");
SendFileContent(FileContent, "application/octet-stream", UUID + ".bin");
}
void RESTAPI_file::DoDelete() {