增加默认CC设置

This commit is contained in:
GoEdgeLab
2023-03-26 12:41:01 +08:00
parent 86abd50c94
commit 0d6adb0af4

View File

@@ -500,7 +500,7 @@ func (this *HTTPWebDAO) ComposeWebConfig(tx *dbs.Tx, webId int64, isLocationOrGr
// CC // CC
if teaconst.IsPlus && IsNotNull(web.Cc) { if teaconst.IsPlus && IsNotNull(web.Cc) {
var ccConfig = &serverconfigs.HTTPCCConfig{} var ccConfig = serverconfigs.DefaultHTTPCCConfig()
err = json.Unmarshal(web.Cc, ccConfig) err = json.Unmarshal(web.Cc, ccConfig)
if err != nil { if err != nil {
return nil, err return nil, err