mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
De default mime type is application/octet-stream now for files in HTTPServerConnection.
This commit is contained in:
parent
715737abfe
commit
d8fb0c9cef
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user