summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amiga/filetype.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/amiga/filetype.c b/amiga/filetype.c
index 7b6805da7..d69f20bad 100644
--- a/amiga/filetype.c
+++ b/amiga/filetype.c
@@ -133,6 +133,10 @@ const char *fetch_filetype(const char *unix_path)
strcpy(mimetype,"text/html");
found = TRUE;
}
+ if(strncmp(unix_path + strlen(unix_path) - 3, ".js", 3) == 0) {
+ strcpy(mimetype,"application/javascript");
+ found = TRUE;
+ }
}
if(!found) strcpy(mimetype,"text/plain"); /* If all else fails */