mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
Correct the strings.Contains syntax in failing test
This commit is contained in:
1 parent
31035f8ad1
commit
dd2ab2820e
1 file changed
+1
-1
@@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user