mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-12 06:03:45 -04:00
Correct the strings.Contains syntax in failing test
This commit is contained in:
parent
31035f8ad1
commit
dd2ab2820e
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user