Fix incorrect type
This commit is contained in:
parent
8e0c5e4380
commit
6085c2d535
4
server/env/env.go
vendored
4
server/env/env.go
vendored
|
@ -421,7 +421,7 @@ func InitAllEnv() error {
|
|||
|
||||
if _, ok := envData[constants.EnvKeyAppCookieSecure]; !ok {
|
||||
if osAppCookieSecure == "" {
|
||||
envData[constants.EnvKeyAppCookieSecure] = "true"
|
||||
envData[constants.EnvKeyAppCookieSecure] = true
|
||||
} else {
|
||||
envData[constants.EnvKeyAppCookieSecure] = osAppCookieSecure == "true"
|
||||
}
|
||||
|
@ -438,7 +438,7 @@ func InitAllEnv() error {
|
|||
|
||||
if _, ok := envData[constants.EnvKeyAdminCookieSecure]; !ok {
|
||||
if osAdminCookieSecure == "" {
|
||||
envData[constants.EnvKeyAdminCookieSecure] = "true"
|
||||
envData[constants.EnvKeyAdminCookieSecure] = true
|
||||
} else {
|
||||
envData[constants.EnvKeyAdminCookieSecure] = osAdminCookieSecure == "true"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user