De default mime type is application/octet-stream now for files in HTTPServerConnection.

This commit is contained in:
Relintai 2023-08-28 12:56:18 +02:00
parent 715737abfe
commit d8fb0c9cef

View File

@ -293,7 +293,7 @@ void HTTPServerConnection::send_file(Ref<WebServerRequest> request, const String
if (_http_server->mimes.has(req_ext)) { if (_http_server->mimes.has(req_ext)) {
ctype = _http_server->mimes[req_ext]; ctype = _http_server->mimes[req_ext];
} else { } else {
ctype = "text/plain"; ctype = "application/octet-stream";
} }
s += "Content-Type: " + ctype + "\r\n"; s += "Content-Type: " + ctype + "\r\n";