prober: http
timeout: 5s
http:
- valid_http_versions: ["HTTP/1.1", "HTTP/2"]
+ valid_http_versions: ["HTTP/1.1", "HTTP/2.0"]
valid_status_codes: [] # Defaults to 2xx
method: GET
headers:
}{
{[]string{}, true},
{[]string{"HTTP/1.1"}, true},
- {[]string{"HTTP/1.1", "HTTP/2"}, true},
- {[]string{"HTTP/2"}, false},
+ {[]string{"HTTP/1.1", "HTTP/2.0"}, true},
+ {[]string{"HTTP/2.0"}, false},
}
for i, test := range tests {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {