Correct the strings.Contains syntax in failing test

This commit is contained in:
Bjørn Erik Pedersen 2015-12-18 16:19:00 +01:00
parent 31035f8ad1
commit dd2ab2820e

View file

@ -117,7 +117,7 @@ func getTestServer(handler func(w http.ResponseWriter, r *http.Request)) (*httpt
client := &http.Client{
Transport: &http.Transport{Proxy: func(r *http.Request) (*url.URL, error) {
if !strings.Contains("go1.4", runtime.Version()) {
if !strings.Contains(runtime.Version(), "go1.4") {
r.Host = "Host: gohugo.io"
}