|
|
@ -396,18 +396,11 @@ QString AbstractWebApplication::saveTmpFile(const QByteArray &data) |
|
|
|
return QString(); |
|
|
|
return QString(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QStringMap AbstractWebApplication::initializeContentTypeByExtMap() |
|
|
|
const QStringMap AbstractWebApplication::CONTENT_TYPE_BY_EXT = { |
|
|
|
{ |
|
|
|
{ "htm", Http::CONTENT_TYPE_HTML }, |
|
|
|
QStringMap map; |
|
|
|
{ "html", Http::CONTENT_TYPE_HTML }, |
|
|
|
|
|
|
|
{ "css", Http::CONTENT_TYPE_CSS }, |
|
|
|
map["htm"] = Http::CONTENT_TYPE_HTML; |
|
|
|
{ "gif", Http::CONTENT_TYPE_GIF }, |
|
|
|
map["html"] = Http::CONTENT_TYPE_HTML; |
|
|
|
{ "png", Http::CONTENT_TYPE_PNG }, |
|
|
|
map["css"] = Http::CONTENT_TYPE_CSS; |
|
|
|
{ "js", Http::CONTENT_TYPE_JS } |
|
|
|
map["gif"] = Http::CONTENT_TYPE_GIF; |
|
|
|
}; |
|
|
|
map["png"] = Http::CONTENT_TYPE_PNG; |
|
|
|
|
|
|
|
map["js"] = Http::CONTENT_TYPE_JS; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return map; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const QStringMap AbstractWebApplication::CONTENT_TYPE_BY_EXT = AbstractWebApplication::initializeContentTypeByExtMap(); |
|
|
|
|
|
|
|