From 13d14ab94d46a0d5affdf688c49dcf053d70d737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 18 Dec 2015 23:09:50 +0100 Subject: [PATCH] Remove "Host:" prefix from Host header That thould work with Go 1.4.3 according to sources inside Google. --- tpl/template_resources_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tpl/template_resources_test.go b/tpl/template_resources_test.go index 2d3cdbc9f..b85d6014e 100644 --- a/tpl/template_resources_test.go +++ b/tpl/template_resources_test.go @@ -116,11 +116,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) { - - if !strings.Contains(runtime.Version(), "go1.4") { - r.Host = "Host: gohugo.io" - } - + r.Host = "gohugo.io" return url.Parse(testServer.URL) }}, }