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 _, ok := envData[constants.EnvKeyAppCookieSecure]; !ok {
|
||||||
if osAppCookieSecure == "" {
|
if osAppCookieSecure == "" {
|
||||||
envData[constants.EnvKeyAppCookieSecure] = "true"
|
envData[constants.EnvKeyAppCookieSecure] = true
|
||||||
} else {
|
} else {
|
||||||
envData[constants.EnvKeyAppCookieSecure] = osAppCookieSecure == "true"
|
envData[constants.EnvKeyAppCookieSecure] = osAppCookieSecure == "true"
|
||||||
}
|
}
|
||||||
|
@ -438,7 +438,7 @@ func InitAllEnv() error {
|
||||||
|
|
||||||
if _, ok := envData[constants.EnvKeyAdminCookieSecure]; !ok {
|
if _, ok := envData[constants.EnvKeyAdminCookieSecure]; !ok {
|
||||||
if osAdminCookieSecure == "" {
|
if osAdminCookieSecure == "" {
|
||||||
envData[constants.EnvKeyAdminCookieSecure] = "true"
|
envData[constants.EnvKeyAdminCookieSecure] = true
|
||||||
} else {
|
} else {
|
||||||
envData[constants.EnvKeyAdminCookieSecure] = osAdminCookieSecure == "true"
|
envData[constants.EnvKeyAdminCookieSecure] = osAdminCookieSecure == "true"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user