mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 12:12:10 -05:00
Correct the strings.Contains syntax in failing test
This commit is contained in:
parent
31035f8ad1
commit
dd2ab2820e
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ func getTestServer(handler func(w http.ResponseWriter, r *http.Request)) (*httpt
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Transport: &http.Transport{Proxy: func(r *http.Request) (*url.URL, error) {
|
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"
|
r.Host = "Host: gohugo.io"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue