mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 23:00:55 +00:00
Fixes some minor spelling mistakes and typos
This commit is contained in:
parent
deb00809a5
commit
9cbefacf52
8
beego.go
8
beego.go
@ -32,7 +32,7 @@ var (
|
|||||||
AppConfig *Config
|
AppConfig *Config
|
||||||
//related to session
|
//related to session
|
||||||
GlobalSessions *session.Manager //GlobalSessions
|
GlobalSessions *session.Manager //GlobalSessions
|
||||||
SessionOn bool // wheather auto start session,default is false
|
SessionOn bool // whether auto start session,default is false
|
||||||
SessionProvider string // default session provider memory mysql redis
|
SessionProvider string // default session provider memory mysql redis
|
||||||
SessionName string // sessionName cookie's name
|
SessionName string // sessionName cookie's name
|
||||||
SessionGCMaxLifetime int64 // session's gc maxlifetime
|
SessionGCMaxLifetime int64 // session's gc maxlifetime
|
||||||
@ -40,8 +40,8 @@ var (
|
|||||||
UseFcgi bool
|
UseFcgi bool
|
||||||
MaxMemory int64
|
MaxMemory int64
|
||||||
EnableGzip bool // enable gzip
|
EnableGzip bool // enable gzip
|
||||||
DirectoryIndex bool //ebable DirectoryIndex default is false
|
DirectoryIndex bool //enable DirectoryIndex default is false
|
||||||
EnbaleHotUpdate bool //enable HotUpdate default is false
|
EnableHotUpdate bool //enable HotUpdate default is false
|
||||||
HttpServerTimeOut int64 //set httpserver timeout
|
HttpServerTimeOut int64 //set httpserver timeout
|
||||||
ErrorsShow bool //set weather show errors
|
ErrorsShow bool //set weather show errors
|
||||||
XSRFKEY string //set XSRF
|
XSRFKEY string //set XSRF
|
||||||
@ -106,7 +106,7 @@ func (app *App) Run() {
|
|||||||
}
|
}
|
||||||
err = fcgi.Serve(l, app.Handlers)
|
err = fcgi.Serve(l, app.Handlers)
|
||||||
} else {
|
} else {
|
||||||
if EnbaleHotUpdate {
|
if EnableHotUpdate {
|
||||||
server := &http.Server{
|
server := &http.Server{
|
||||||
Handler: app.Handlers,
|
Handler: app.Handlers,
|
||||||
ReadTimeout: time.Duration(HttpServerTimeOut) * time.Second,
|
ReadTimeout: time.Duration(HttpServerTimeOut) * time.Second,
|
||||||
|
@ -178,7 +178,7 @@ func ParseConfig() (err error) {
|
|||||||
DirectoryIndex = directoryindex
|
DirectoryIndex = directoryindex
|
||||||
}
|
}
|
||||||
if hotupdate, err := AppConfig.Bool("hotupdate"); err == nil {
|
if hotupdate, err := AppConfig.Bool("hotupdate"); err == nil {
|
||||||
EnbaleHotUpdate = hotupdate
|
EnableHotUpdate = hotupdate
|
||||||
}
|
}
|
||||||
if timeout, err := AppConfig.Int64("httpservertimeout"); err == nil {
|
if timeout, err := AppConfig.Int64("httpservertimeout"); err == nil {
|
||||||
HttpServerTimeOut = timeout
|
HttpServerTimeOut = timeout
|
||||||
|
Loading…
Reference in New Issue
Block a user