fixed external css not working

This commit is contained in:
Jonas_Jones 2023-09-03 13:25:21 +02:00
parent dcb5972eb4
commit ca0be55429

View file

@ -195,6 +195,8 @@ public class HTTPServer implements Runnable {
private String getContentType(String fileRequested) { private String getContentType(String fileRequested) {
if (fileRequested.endsWith(".htm") || fileRequested.endsWith(".html")) if (fileRequested.endsWith(".htm") || fileRequested.endsWith(".html"))
return "text/html"; return "text/html";
else if (fileRequested.endsWith(".css"))
return "text/css";
else else
return "text/plain"; return "text/plain";
} }