Merge "Add HTTP/2 support to the Go test server"

This commit is contained in:
Zuul 2020-12-03 06:38:47 +00:00 committed by Gerrit Code Review
commit 94ab4a12ac
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ func https_serve(port int, id string, cert tls.Certificate,
tls.TLS_RSA_WITH_AES_256_GCM_SHA384,
tls.TLS_RSA_WITH_AES_256_CBC_SHA,
},
NextProtos: []string{"h2", "http/1.1", "http/1.0"},
}
}
tls_config.Rand = rand.Reader