1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 03:30:57 +00:00

Merge pull request #1415 from johndeng/develop

Fixed typos
This commit is contained in:
astaxie 2015-11-04 13:08:37 +08:00
commit c7e9a86b00
3 changed files with 7 additions and 7 deletions

View File

@ -107,7 +107,7 @@ func listConf(rw http.ResponseWriter, r *http.Request) {
m["SessionGCMaxLifetime"] = SessionGCMaxLifetime m["SessionGCMaxLifetime"] = SessionGCMaxLifetime
m["SessionProviderConfig"] = SessionProviderConfig m["SessionProviderConfig"] = SessionProviderConfig
m["SessionCookieLifeTime"] = SessionCookieLifeTime m["SessionCookieLifeTime"] = SessionCookieLifeTime
m["EnabelFcgi"] = EnabelFcgi m["EnableFcgi"] = EnableFcgi
m["MaxMemory"] = MaxMemory m["MaxMemory"] = MaxMemory
m["EnableGzip"] = EnableGzip m["EnableGzip"] = EnableGzip
m["DirectoryIndex"] = DirectoryIndex m["DirectoryIndex"] = DirectoryIndex

2
app.go
View File

@ -64,7 +64,7 @@ func (app *App) Run() {
) )
endRunning := make(chan bool, 1) endRunning := make(chan bool, 1)
if EnabelFcgi { if EnableFcgi {
if EnableStdIo { if EnableStdIo {
err = fcgi.Serve(nil, app.Handlers) // standard I/O err = fcgi.Serve(nil, app.Handlers) // standard I/O
if err == nil { if err == nil {

View File

@ -60,15 +60,15 @@ var (
EnableDocs bool EnableDocs bool
// EnableErrorsShow wheather show errors in page. if true, show error and trace info in page rendered with error template. // EnableErrorsShow wheather show errors in page. if true, show error and trace info in page rendered with error template.
EnableErrorsShow bool EnableErrorsShow bool
// EnabelFcgi turn on the fcgi Listen, default is false // EnableFcgi turn on the fcgi Listen, default is false
EnabelFcgi bool EnableFcgi bool
// EnableGzip means gzip the response // EnableGzip means gzip the response
EnableGzip bool EnableGzip bool
// EnableHTTPListen represent whether turn on the HTTP, default is true // EnableHTTPListen represent whether turn on the HTTP, default is true
EnableHTTPListen bool EnableHTTPListen bool
// EnableHTTPTLS represent whether turn on the HTTPS, default is true // EnableHTTPTLS represent whether turn on the HTTPS, default is true
EnableHTTPTLS bool EnableHTTPTLS bool
// EnableStdIo works with EnabelFcgi Use FCGI via standard I/O // EnableStdIo works with EnableFcgi Use FCGI via standard I/O
EnableStdIo bool EnableStdIo bool
// EnableXSRF whether turn on xsrf. default is false // EnableXSRF whether turn on xsrf. default is false
EnableXSRF bool EnableXSRF bool
@ -435,8 +435,8 @@ func ParseConfig() (err error) {
SessionCookieLifeTime = sesscookielifetime SessionCookieLifeTime = sesscookielifetime
} }
if enabelFcgi, err := AppConfig.Bool("EnabelFcgi"); err == nil { if enableFcgi, err := AppConfig.Bool("EnableFcgi"); err == nil {
EnabelFcgi = enabelFcgi EnableFcgi = enableFcgi
} }
if enablegzip, err := AppConfig.Bool("EnableGzip"); err == nil { if enablegzip, err := AppConfig.Bool("EnableGzip"); err == nil {