diff --git a/gin_test.go b/gin_test.go index 9bb6be2e34..b6f272916a 100644 --- a/gin_test.go +++ b/gin_test.go @@ -12,6 +12,8 @@ import ( "net" "net/http" "reflect" + "runtime" + "strings" "testing" "time" @@ -96,6 +98,11 @@ func TestLoadHTMLGlob(t *testing.T) { } func TestLoadHTMLGlobOverH2c(t *testing.T) { + // go1.6's http client does not support h2c + if strings.Contains(runtime.Version(), "go1.6") { + return + } + td := setupHTMLGlob(t, DebugMode, false) http := http.Client{