fix: dates

This commit is contained in:
ange 2024-11-19 10:16:15 +00:00
parent 25b1d70b89
commit 805d417a9a
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
2 changed files with 3 additions and 4 deletions

View file

@ -4,7 +4,6 @@ import (
"log"
"net/http"
"path/filepath"
"strings"
)
func html(w http.ResponseWriter, r *http.Request) {
@ -12,7 +11,7 @@ func html(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "/html/style.css")
return
}
if strings.HasPrefix(r.URL.Path, "/static/") {
if len(r.URL.Path) > len("/static/") && r.URL.Path[:len("/static/")] == "/static/" {
http.ServeFile(w, r, r.URL.Path)
return
}