diff --git a/admin.go b/admin.go index fa4b1db0..ddc936ef 100644 --- a/admin.go +++ b/admin.go @@ -107,7 +107,7 @@ func listConf(rw http.ResponseWriter, r *http.Request) { m["SessionGCMaxLifetime"] = SessionGCMaxLifetime m["SessionProviderConfig"] = SessionProviderConfig m["SessionCookieLifeTime"] = SessionCookieLifeTime - m["EnabelFcgi"] = EnabelFcgi + m["EnableFcgi"] = EnableFcgi m["MaxMemory"] = MaxMemory m["EnableGzip"] = EnableGzip m["DirectoryIndex"] = DirectoryIndex diff --git a/app.go b/app.go index d10d436c..019d6ff4 100644 --- a/app.go +++ b/app.go @@ -64,7 +64,7 @@ func (app *App) Run() { ) endRunning := make(chan bool, 1) - if EnabelFcgi { + if EnableFcgi { if EnableStdIo { err = fcgi.Serve(nil, app.Handlers) // standard I/O if err == nil { diff --git a/config.go b/config.go index 6f87fed1..d4a0f0e2 100644 --- a/config.go +++ b/config.go @@ -60,15 +60,15 @@ var ( EnableDocs bool // EnableErrorsShow wheather show errors in page. if true, show error and trace info in page rendered with error template. EnableErrorsShow bool - // EnabelFcgi turn on the fcgi Listen, default is false - EnabelFcgi bool + // EnableFcgi turn on the fcgi Listen, default is false + EnableFcgi bool // EnableGzip means gzip the response EnableGzip bool // EnableHTTPListen represent whether turn on the HTTP, default is true EnableHTTPListen bool // EnableHTTPTLS represent whether turn on the HTTPS, default is true EnableHTTPTLS bool - // EnableStdIo works with EnabelFcgi Use FCGI via standard I/O + // EnableStdIo works with EnableFcgi Use FCGI via standard I/O EnableStdIo bool // EnableXSRF whether turn on xsrf. default is false EnableXSRF bool @@ -435,8 +435,8 @@ func ParseConfig() (err error) { SessionCookieLifeTime = sesscookielifetime } - if enabelFcgi, err := AppConfig.Bool("EnabelFcgi"); err == nil { - EnabelFcgi = enabelFcgi + if enableFcgi, err := AppConfig.Bool("EnableFcgi"); err == nil { + EnableFcgi = enableFcgi } if enablegzip, err := AppConfig.Bool("EnableGzip"); err == nil {