From 2696fe05d4e5364cf01eed0cc8116360f42248e9 Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Sat, 5 Apr 2025 07:23:31 -0700 Subject: [PATCH] feat: add support for additional mime types and default file type --- tvapp2/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tvapp2/index.js b/tvapp2/index.js index dd5713e0..a6706a82 100755 --- a/tvapp2/index.js +++ b/tvapp2/index.js @@ -1107,13 +1107,18 @@ const server = http.createServer( ( request, response ) => ? 'text/plain' : { '.html' : 'text/html', + '.htm' : 'text/html', '.ico' : 'image/x-icon', '.jpg' : 'image/jpeg', '.png' : 'image/png', '.gif' : 'image/gif', '.css' : 'text/css', '.gz' : 'application/gzip', - '.js' : 'text/javascript' + '.js' : 'text/javascript', + '.txt' : 'text/plain', + '.xml' : 'application/xml', + '.m3u' : 'text/plain', + '.m3u8' : 'text/plain' }[loadFile.substring( fileExt )]; /*