mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-24 15:30:24 +08:00
优化代码
This commit is contained in:
@@ -236,7 +236,7 @@ func (this *HTTPHeaderDAO) ComposeHeaderConfig(tx *dbs.Tx, headerId int64) (*sha
|
||||
|
||||
config := &shared.HTTPHeaderConfig{}
|
||||
config.Id = int64(header.Id)
|
||||
config.IsOn = header.IsOn == 1
|
||||
config.IsOn = header.IsOn
|
||||
config.Name = header.Name
|
||||
config.Value = header.Value
|
||||
config.DisableRedirect = header.DisableRedirect == 1
|
||||
|
||||
Reference in New Issue
Block a user