Finished WWWGen

This commit is contained in:
Mike Nolan 2024-09-23 21:58:28 -05:00
parent 67df647fb2
commit 2a225cccef
1 changed files with 40 additions and 0 deletions

View File

@ -77,6 +77,34 @@ class HttpUtils {
{ {
return "text/html"; return "text/html";
} }
if(ext == ".txt" || ext == ".log" || ext == ".twss")
{
return "text/plain";
}
if(ext == ".woff")
{
return "application/x-font-woff";
}
if(ext == ".vtt")
{
return "text/vtt";
}
if(ext == ".svg")
{
return "image/svg+xml";
}
if(ext == ".webp")
{
return "image/webp";
}
if(ext == ".vcf")
{
return "text/v-card";
}
if(ext == ".rss" || ext == ".xml" || ext == ".atom" || ext == ".rdf")
{
return "application/xml";
}
if(ext == ".js") if(ext == ".js")
{ {
return "text/javascript"; return "text/javascript";
@ -108,6 +136,14 @@ class HttpUtils {
if(ext == ".mp4") if(ext == ".mp4")
{ {
return "video/mp4"; return "video/mp4";
}
if(ext == ".mov")
{
return "video/quicktime";
}
if(ext == ".m4a")
{
return "audio/mp4";
} }
if(ext == ".webm") if(ext == ".webm")
{ {
@ -117,6 +153,10 @@ class HttpUtils {
{ {
return "application/manifest+json"; return "application/manifest+json";
} }
if(ext == ".ico")
{
return "image/x-icon";
}
return "application/octet-stream"; return "application/octet-stream";
} }