Denis V. Dedkov 9 éve
szülő
commit
35a37ce9e8
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      noolite-cli.go

+ 1 - 1
noolite-cli.go

@@ -113,7 +113,7 @@ func main() {
 
 		fs := http.FileServer(http.Dir("/var/www/static"))
 
-		http.Handle("/static/", fs)
+		http.Handle("/static/", http.StripPrefix("/static/", fs))
 
 		panic(http.ListenAndServe(fmt.Sprintf(":%d", *http_port), nil))
 	}