Commit c7e9a86b authored by astaxie's avatar astaxie

Merge pull request #1415 from johndeng/develop

Fixed typos
parents 58ed1436 205de841
...@@ -107,7 +107,7 @@ func listConf(rw http.ResponseWriter, r *http.Request) { ...@@ -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
......
...@@ -64,7 +64,7 @@ func (app *App) Run() { ...@@ -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 {
......
...@@ -60,15 +60,15 @@ var ( ...@@ -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) { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment