Fixes some minor spelling mistakes and typos
Showing
2 changed files
with
5 additions
and
5 deletions
| ... | @@ -32,7 +32,7 @@ var ( | ... | @@ -32,7 +32,7 @@ var ( |
| 32 | AppConfig *Config | 32 | AppConfig *Config |
| 33 | //related to session | 33 | //related to session |
| 34 | GlobalSessions *session.Manager //GlobalSessions | 34 | GlobalSessions *session.Manager //GlobalSessions |
| 35 | SessionOn bool // wheather auto start session,default is false | 35 | SessionOn bool // whether auto start session,default is false |
| 36 | SessionProvider string // default session provider memory mysql redis | 36 | SessionProvider string // default session provider memory mysql redis |
| 37 | SessionName string // sessionName cookie's name | 37 | SessionName string // sessionName cookie's name |
| 38 | SessionGCMaxLifetime int64 // session's gc maxlifetime | 38 | SessionGCMaxLifetime int64 // session's gc maxlifetime |
| ... | @@ -40,8 +40,8 @@ var ( | ... | @@ -40,8 +40,8 @@ var ( |
| 40 | UseFcgi bool | 40 | UseFcgi bool |
| 41 | MaxMemory int64 | 41 | MaxMemory int64 |
| 42 | EnableGzip bool // enable gzip | 42 | EnableGzip bool // enable gzip |
| 43 | DirectoryIndex bool //ebable DirectoryIndex default is false | 43 | DirectoryIndex bool //enable DirectoryIndex default is false |
| 44 | EnbaleHotUpdate bool //enable HotUpdate default is false | 44 | EnableHotUpdate bool //enable HotUpdate default is false |
| 45 | HttpServerTimeOut int64 //set httpserver timeout | 45 | HttpServerTimeOut int64 //set httpserver timeout |
| 46 | ErrorsShow bool //set weather show errors | 46 | ErrorsShow bool //set weather show errors |
| 47 | XSRFKEY string //set XSRF | 47 | XSRFKEY string //set XSRF |
| ... | @@ -106,7 +106,7 @@ func (app *App) Run() { | ... | @@ -106,7 +106,7 @@ func (app *App) Run() { |
| 106 | } | 106 | } |
| 107 | err = fcgi.Serve(l, app.Handlers) | 107 | err = fcgi.Serve(l, app.Handlers) |
| 108 | } else { | 108 | } else { |
| 109 | if EnbaleHotUpdate { | 109 | if EnableHotUpdate { |
| 110 | server := &http.Server{ | 110 | server := &http.Server{ |
| 111 | Handler: app.Handlers, | 111 | Handler: app.Handlers, |
| 112 | ReadTimeout: time.Duration(HttpServerTimeOut) * time.Second, | 112 | ReadTimeout: time.Duration(HttpServerTimeOut) * time.Second, | ... | ... |
| ... | @@ -178,7 +178,7 @@ func ParseConfig() (err error) { | ... | @@ -178,7 +178,7 @@ func ParseConfig() (err error) { |
| 178 | DirectoryIndex = directoryindex | 178 | DirectoryIndex = directoryindex |
| 179 | } | 179 | } |
| 180 | if hotupdate, err := AppConfig.Bool("hotupdate"); err == nil { | 180 | if hotupdate, err := AppConfig.Bool("hotupdate"); err == nil { |
| 181 | EnbaleHotUpdate = hotupdate | 181 | EnableHotUpdate = hotupdate |
| 182 | } | 182 | } |
| 183 | if timeout, err := AppConfig.Int64("httpservertimeout"); err == nil { | 183 | if timeout, err := AppConfig.Int64("httpservertimeout"); err == nil { |
| 184 | HttpServerTimeOut = timeout | 184 | HttpServerTimeOut = timeout | ... | ... |
-
Please register or sign in to post a comment