1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-05 01:50:54 +00:00

Merge pull request #156 from benlovell/spelling

Fix some minor spelling mistakes and typos
This commit is contained in:
astaxie 2013-08-14 00:17:35 -07:00
commit 51e625debf
2 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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