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