HTTP server: added mime type for .yaml files

pull/147/head
f4exb 2018-02-18 23:37:59 +01:00
rodzic 4363676aec
commit 05289a6fd9
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -209,6 +209,10 @@ void StaticFileController::setContentType(QString fileName, HttpResponse& respon
{ {
response.setHeader("Content-Type", "application/font-otf"); response.setHeader("Content-Type", "application/font-otf");
} }
else if (fileName.endsWith(".yaml"))
{
response.setHeader("Content-Type", "text/plain");
}
// Todo: add all of your content types // Todo: add all of your content types
else else
{ {