1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-06 01:50:19 +00:00

beego:support https & http listen

This commit is contained in:
astaxie
2014-05-20 15:30:17 +08:00
parent 3f4d750dc4
commit 18a02d7d60
4 changed files with 43 additions and 13 deletions

View File

@ -270,7 +270,7 @@ func initBeforeHttpRun() {
sessionConfig = `{"cookieName":"` + SessionName + `",` +
`"gclifetime":` + strconv.FormatInt(SessionGCMaxLifetime, 10) + `,` +
`"providerConfig":"` + SessionSavePath + `",` +
`"secure":` + strconv.FormatBool(HttpTLS) + `,` +
`"secure":` + strconv.FormatBool(EnableHttpTLS) + `,` +
`"sessionIDHashFunc":"` + SessionHashFunc + `",` +
`"sessionIDHashKey":"` + SessionHashKey + `",` +
`"enableSetCookie":` + strconv.FormatBool(SessionAutoSetCookie) + `,` +