mirror of
https://github.com/JonasunderscoreJones/McWebserver.git
synced 2025-10-23 03:19:19 +02:00
fixed external css not working
This commit is contained in:
parent
dcb5972eb4
commit
ca0be55429
1 changed files with 2 additions and 0 deletions
|
@ -195,6 +195,8 @@ public class HTTPServer implements Runnable {
|
|||
private String getContentType(String fileRequested) {
|
||||
if (fileRequested.endsWith(".htm") || fileRequested.endsWith(".html"))
|
||||
return "text/html";
|
||||
else if (fileRequested.endsWith(".css"))
|
||||
return "text/css";
|
||||
else
|
||||
return "text/plain";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue