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
b2a69f50
Commit
b2a69f50
authored
Apr 28, 2014
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beego: support other analisys & fix typo
parent
b2bd829d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
input.go
context/input.go
+1
-1
filter_test.go
filter_test.go
+0
-0
router.go
router.go
+1
-1
No files found.
context/input.go
View file @
b2a69f50
...
@@ -152,7 +152,7 @@ func (input *BeegoInput) IsWebsocket() bool {
...
@@ -152,7 +152,7 @@ func (input *BeegoInput) IsWebsocket() bool {
// IsSecure returns boolean of whether file uploads in this request or not..
// IsSecure returns boolean of whether file uploads in this request or not..
func
(
input
*
BeegoInput
)
IsUpload
()
bool
{
func
(
input
*
BeegoInput
)
IsUpload
()
bool
{
return
input
.
Header
(
"Content-Type"
)
==
"multipart/form-data"
return
strings
.
Contains
(
input
.
Header
(
"Content-Type"
),
"multipart/form-data"
)
}
}
// IP returns request client ip.
// IP returns request client ip.
...
...
fiter_test.go
→
fi
l
ter_test.go
View file @
b2a69f50
File moved
router.go
View file @
b2a69f50
...
@@ -556,7 +556,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
...
@@ -556,7 +556,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
goto
Admin
goto
Admin
}
}
if
context
.
Input
.
IsPost
()
{
if
!
context
.
Input
.
IsGet
()
&&
!
context
.
Input
.
IsHead
()
{
if
CopyRequestBody
&&
!
context
.
Input
.
IsUpload
()
{
if
CopyRequestBody
&&
!
context
.
Input
.
IsUpload
()
{
context
.
Input
.
CopyBody
()
context
.
Input
.
CopyBody
()
}
}
...
...
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