Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
51e625de
Commit
51e625de
authored
Aug 14, 2013
by
astaxie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #156 from benlovell/spelling
Fix some minor spelling mistakes and typos
parents
42f1d1ae
1977d87d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
beego.go
beego.go
+4
-4
config.go
config.go
+1
-1
No files found.
beego.go
View file @
51e625de
...
...
@@ -32,7 +32,7 @@ var (
AppConfig
*
Config
//related to session
GlobalSessions
*
session
.
Manager
//GlobalSessions
SessionOn
bool
// whe
a
ther auto start session,default is false
SessionOn
bool
// whether auto start session,default is false
SessionProvider
string
// default session provider memory mysql redis
SessionName
string
// sessionName cookie's name
SessionGCMaxLifetime
int64
// session's gc maxlifetime
...
...
@@ -40,8 +40,8 @@ var (
UseFcgi
bool
MaxMemory
int64
EnableGzip
bool
// enable gzip
DirectoryIndex
bool
//e
b
able DirectoryIndex default is false
En
ba
leHotUpdate
bool
//enable HotUpdate default is false
DirectoryIndex
bool
//e
n
able DirectoryIndex default is false
En
ab
leHotUpdate
bool
//enable HotUpdate default is false
HttpServerTimeOut
int64
//set httpserver timeout
ErrorsShow
bool
//set weather show errors
XSRFKEY
string
//set XSRF
...
...
@@ -106,7 +106,7 @@ func (app *App) Run() {
}
err
=
fcgi
.
Serve
(
l
,
app
.
Handlers
)
}
else
{
if
En
ba
leHotUpdate
{
if
En
ab
leHotUpdate
{
server
:=
&
http
.
Server
{
Handler
:
app
.
Handlers
,
ReadTimeout
:
time
.
Duration
(
HttpServerTimeOut
)
*
time
.
Second
,
...
...
config.go
View file @
51e625de
...
...
@@ -178,7 +178,7 @@ func ParseConfig() (err error) {
DirectoryIndex
=
directoryindex
}
if
hotupdate
,
err
:=
AppConfig
.
Bool
(
"hotupdate"
);
err
==
nil
{
En
ba
leHotUpdate
=
hotupdate
En
ab
leHotUpdate
=
hotupdate
}
if
timeout
,
err
:=
AppConfig
.
Int64
(
"httpservertimeout"
);
err
==
nil
{
HttpServerTimeOut
=
timeout
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment