shithub: hugo

Download patch

ref: dd2ab2820ec9f894d56b7917a39dfdff5774075d
parent: 31035f8ad12f6bee967eb0a598e224e34acfd966
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Dec 18 11:19:00 EST 2015

Correct the strings.Contains syntax in failing test

--- a/tpl/template_resources_test.go
+++ b/tpl/template_resources_test.go
@@ -117,7 +117,7 @@
 	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"
 			}