From 7ea21a9e17af72b6c0d2b4e5426beb767eae6ae2 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Mon, 1 Oct 2012 17:42:59 -0700 Subject: [PATCH] gofmt --- src/082-canonical-hosts/canonical-hosts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/082-canonical-hosts/canonical-hosts.go b/src/082-canonical-hosts/canonical-hosts.go index e503088..2a8b2a9 100644 --- a/src/082-canonical-hosts/canonical-hosts.go +++ b/src/082-canonical-hosts/canonical-hosts.go @@ -20,7 +20,7 @@ func wrapCanonicalHost(f handler, chost string) handler { if host != chost { fmt.Println("redirect to", chost) hostPort[0] = chost - url := "http://" + + url := "http://" + strings.Join(hostPort, ":") + r.URL.String() http.Redirect(w, r, url, 301)