mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-15 07:06:35 +08:00
实现gzip
This commit is contained in:
@@ -118,13 +118,13 @@ func (this *HTTPAccessLogPolicyDAO) ComposeAccessLogPolicyConfig(policyId int64)
|
||||
}
|
||||
|
||||
// 条件
|
||||
if IsNotNull(policy.CondGroups) {
|
||||
condGroups := []*shared.HTTPRequestCondGroup{}
|
||||
err = json.Unmarshal([]byte(policy.CondGroups), &condGroups)
|
||||
if IsNotNull(policy.Conds) {
|
||||
condsConfig := &shared.HTTPRequestCondsConfig{}
|
||||
err = json.Unmarshal([]byte(policy.Conds), condsConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
config.CondGroups = condGroups
|
||||
config.Conds = condsConfig
|
||||
}
|
||||
|
||||
return config, nil
|
||||
|
||||
Reference in New Issue
Block a user