Fix this little detail.
This commit is contained in:
parent
ed4adeaeb5
commit
a2f479be31
|
@ -728,7 +728,7 @@ func (r *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
shost = spl[0]
|
shost = spl[0]
|
||||||
if len(shost)==2 {
|
if len(spl)==2 {
|
||||||
sport = spl[1]
|
sport = spl[1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -507,7 +507,7 @@ func (r *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
shost = spl[0]
|
shost = spl[0]
|
||||||
if len(shost)==2 {
|
if len(spl)==2 {
|
||||||
sport = spl[1]
|
sport = spl[1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue