fix: dates
This commit is contained in:
parent
25b1d70b89
commit
805d417a9a
2 changed files with 3 additions and 4 deletions
3
main.go
3
main.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue