Browse Source

fix static assets (#3816)

pull/3821/head
im_zhou 12 months ago committed by GitHub
parent
commit
6d9e0c20f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkg/util/http/server.go

4
pkg/util/http/server.go

@ -46,9 +46,7 @@ type Server struct {
} }
func NewServer(cfg v1.WebServerConfig) (*Server, error) { func NewServer(cfg v1.WebServerConfig) (*Server, error) {
if cfg.AssetsDir != "" { assets.Load(cfg.AssetsDir)
assets.Load(cfg.AssetsDir)
}
addr := net.JoinHostPort(cfg.Addr, strconv.Itoa(cfg.Port)) addr := net.JoinHostPort(cfg.Addr, strconv.Itoa(cfg.Port))
if addr == ":" { if addr == ":" {

Loading…
Cancel
Save