Fix build
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 18 Dec 2015 22:23:37 +0000 (23:23 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 18 Dec 2015 22:23:37 +0000 (23:23 +0100)
tpl/template_resources_test.go

index b85d6014e1a9c7c0af955f49057e67f271ac2047..c847d3ba92897a1787c62178f89248ad56889db1 100644 (file)
@@ -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)
                }},