Denis V. Dedkov 9 năm trước cách đây
mục cha
commit
35a37ce9e8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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))
 	}