From d8fb0c9cef7ab3be8ca4ef14e7a3412f538a7d71 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 28 Aug 2023 12:56:18 +0200 Subject: [PATCH] De default mime type is application/octet-stream now for files in HTTPServerConnection. --- modules/http_server_simple/http_server_simple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/http_server_simple/http_server_simple.cpp b/modules/http_server_simple/http_server_simple.cpp index 30dfc519c..691209a27 100644 --- a/modules/http_server_simple/http_server_simple.cpp +++ b/modules/http_server_simple/http_server_simple.cpp @@ -293,7 +293,7 @@ void HTTPServerConnection::send_file(Ref request, const String if (_http_server->mimes.has(req_ext)) { ctype = _http_server->mimes[req_ext]; } else { - ctype = "text/plain"; + ctype = "application/octet-stream"; } s += "Content-Type: " + ctype + "\r\n";