静态分发增加例外URL、限制URL、排除隐藏文件等选项

This commit is contained in:
刘祥超
2023-08-10 11:27:05 +08:00
parent f5450e37be
commit 034ababead

View File

@@ -101,7 +101,7 @@ func (this *HTTPWebDAO) ComposeWebConfig(tx *dbs.Tx, webId int64, isLocationOrGr
// root
if IsNotNull(web.Root) {
var rootConfig = &serverconfigs.HTTPRootConfig{}
var rootConfig = serverconfigs.NewHTTPRootConfig()
err = json.Unmarshal(web.Root, rootConfig)
if err != nil {
return nil, err