From: Bjørn Erik Pedersen Date: Fri, 18 Dec 2015 22:23:37 +0000 (+0100) Subject: Fix build X-Git-Tag: v0.16~503 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fe7ca7d7;p=brevno-suite%2Fhugo Fix build --- diff --git a/tpl/template_resources_test.go b/tpl/template_resources_test.go index b85d6014..c847d3ba 100644 --- a/tpl/template_resources_test.go +++ b/tpl/template_resources_test.go @@ -20,7 +20,6 @@ import ( "net/http/httptest" "net/url" "os" - "runtime" "strings" "testing" "time" @@ -116,6 +115,7 @@ func getTestServer(handler func(w http.ResponseWriter, r *http.Request)) (*httpt testServer := httptest.NewServer(http.HandlerFunc(handler)) client := &http.Client{ Transport: &http.Transport{Proxy: func(r *http.Request) (*url.URL, error) { + // Remove when https://github.com/golang/go/issues/13686 is fixed r.Host = "gohugo.io" return url.Parse(testServer.URL) }},