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
205de841
Commit
205de841
authored
Nov 03, 2015
by
John Deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typos
parent
58ed1436
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
admin.go
admin.go
+1
-1
app.go
app.go
+1
-1
config.go
config.go
+5
-5
No files found.
admin.go
View file @
205de841
...
...
@@ -107,7 +107,7 @@ func listConf(rw http.ResponseWriter, r *http.Request) {
m
[
"SessionGCMaxLifetime"
]
=
SessionGCMaxLifetime
m
[
"SessionProviderConfig"
]
=
SessionProviderConfig
m
[
"SessionCookieLifeTime"
]
=
SessionCookieLifeTime
m
[
"Enab
elFcgi"
]
=
Enabel
Fcgi
m
[
"Enab
leFcgi"
]
=
Enable
Fcgi
m
[
"MaxMemory"
]
=
MaxMemory
m
[
"EnableGzip"
]
=
EnableGzip
m
[
"DirectoryIndex"
]
=
DirectoryIndex
...
...
app.go
View file @
205de841
...
...
@@ -64,7 +64,7 @@ func (app *App) Run() {
)
endRunning
:=
make
(
chan
bool
,
1
)
if
Enab
el
Fcgi
{
if
Enab
le
Fcgi
{
if
EnableStdIo
{
err
=
fcgi
.
Serve
(
nil
,
app
.
Handlers
)
// standard I/O
if
err
==
nil
{
...
...
config.go
View file @
205de841
...
...
@@ -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
// Enab
el
Fcgi turn on the fcgi Listen, default is false
Enab
el
Fcgi
bool
// Enab
le
Fcgi turn on the fcgi Listen, default is false
Enab
le
Fcgi
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 Enab
el
Fcgi Use FCGI via standard I/O
// EnableStdIo works with Enab
le
Fcgi 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
enab
elFcgi
,
err
:=
AppConfig
.
Bool
(
"Enabel
Fcgi"
);
err
==
nil
{
Enab
elFcgi
=
enabel
Fcgi
if
enab
leFcgi
,
err
:=
AppConfig
.
Bool
(
"Enable
Fcgi"
);
err
==
nil
{
Enab
leFcgi
=
enable
Fcgi
}
if
enablegzip
,
err
:=
AppConfig
.
Bool
(
"EnableGzip"
);
err
==
nil
{
...
...
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