From fe7ca7d78c25f105706490aff11fbb4aabc2de3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 18 Dec 2015 23:23:37 +0100 Subject: [PATCH] Fix build --- tpl/template_resources_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }}, -- 2.30.2