Fix this little detail.

This commit is contained in:
Azareal 2019-04-01 17:04:02 +10:00
parent ed4adeaeb5
commit a2f479be31
2 changed files with 2 additions and 2 deletions

View File

@ -728,7 +728,7 @@ func (r *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
return
}
shost = spl[0]
if len(shost)==2 {
if len(spl)==2 {
sport = spl[1]
}
}

View File

@ -507,7 +507,7 @@ func (r *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
return
}
shost = spl[0]
if len(shost)==2 {
if len(spl)==2 {
sport = spl[1]
}
}