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
c9bb9d6a
authored
2014-11-18 22:54:48 +0800
by
xuewuhen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
SubDomains function bugfixed
1 parent
cec151fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
context/input.go
context/input.go
View file @
c9bb9d6
...
...
@@ -194,7 +194,7 @@ func (input *BeegoInput) Refer() string {
// if aa.bb.domain.com, returns aa.bb .
func
(
input
*
BeegoInput
)
SubDomains
()
string
{
parts
:=
strings
.
Split
(
input
.
Host
(),
"."
)
return
strings
.
Join
(
parts
[
len
(
parts
)
-
2
:
],
"."
)
return
strings
.
Join
(
parts
[
:
len
(
parts
)
-
2
],
"."
)
}
// Port returns request client port.
...
...
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