This website works better with JavaScript.
Home
Explore
Help
Sign In
tgo
/
helper
Watch
6
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
32
Wiki
Activity
Browse Source
修改GetDomain
master
v0.8.1
gz
7 months ago
parent
c824e5a723
commit
1451ae0148
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
header.go
+ 1
- 1
header.go
View File
@ -44,7 +44,7 @@ func GetDomain(req *http.Request) string {
var
host
string
=
GetHost
(
req
)
hosts
:=
strings
.
Split
(
host
,
":"
)
host
=
hosts
[
0
]
if
hosts
[
1
]
==
"443"
{
if
len
(
hosts
)
>
1
&&
hosts
[
1
]
==
"443"
{
scheme
=
"https://"
}
var
w
strings
.
Builder
Write
Preview
Loading…
Cancel
Save