Don't use vars

This commit is contained in:
Yohann D'ANELLO 2020-10-04 18:12:35 +02:00
parent 7831238375
commit 3bf27fb0b1
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func viewerGetHandler(w http.ResponseWriter, r *http.Request) {
// Get stream ID from URL, or from domain name
path := r.URL.Path[1:]
if cfg.OneStreamPerDomain {
var host = r.Host
host := r.Host
if strings.Contains(host, ":") {
realHost, _, err := net.SplitHostPort(r.Host)
if err != nil {