Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f52faf63
authored
2013-11-21 15:59:16 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix #304
1 parent
b9fb88f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
context/input.go
context/input.go
View file @
f52faf6
...
...
@@ -101,14 +101,14 @@ func (input *BeegoInput) IP() string {
}
func
(
input
*
BeegoInput
)
Proxy
()
[]
string
{
if
ips
:=
input
.
Header
(
"
HTTP_X_FORWARDED_FOR
"
);
ips
!=
""
{
if
ips
:=
input
.
Header
(
"
X-Forwarded-For
"
);
ips
!=
""
{
return
strings
.
Split
(
ips
,
","
)
}
return
[]
string
{}
}
func
(
input
*
BeegoInput
)
Refer
()
string
{
return
input
.
Header
(
"
HTTP_REFERER
"
)
return
input
.
Header
(
"
Referer
"
)
}
func
(
input
*
BeegoInput
)
SubDomains
()
string
{
...
...
@@ -126,7 +126,7 @@ func (input *BeegoInput) Port() int {
}
func
(
input
*
BeegoInput
)
UserAgent
()
string
{
return
input
.
Header
(
"
HTTP_USER_AGENT
"
)
return
input
.
Header
(
"
User-Agent
"
)
}
func
(
input
*
BeegoInput
)
Params
(
key
string
)
string
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment