added: setting a correct mime type for static files - using magic library

added: std::wstring file_mime_type to ItemContent - a mime type for static file
added: Header (core/header.h) - there will be header names defined, at the moment only content_type
added: FuncionsBase::Finish() - it is called at the end when the winix finishes
This commit is contained in:
2021-09-22 00:23:25 +02:00
parent 26ed7b80be
commit 9c5c74ba84
29 changed files with 364 additions and 35 deletions

View File

@@ -286,6 +286,15 @@ void Functions::InitFunctions()
}
void Functions::FinishFunctions()
{
Table::iterator i = table.begin();
for( ; i!=table.end() ; ++i)
i->second->Finish();
}
void Functions::Init()
{
CreateFunctions();
@@ -293,6 +302,12 @@ void Functions::Init()
}
void Functions::Finish()
{
FinishFunctions();
}
void Functions::Parse()
{
function_parser.Parse(cur, db, this, system);