mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-26 18:52:25 -04:00
HTTP server: added mime type for .yaml files
This commit is contained in:
parent
4363676aec
commit
05289a6fd9
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user