Use Get, not Head for channel page (#13402)

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Derek Nola 2026-01-05 09:35:06 -08:00 committed by GitHub
parent 9c89e960cd
commit a8b4befa6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ var _ = Describe("Upgrade Tests", Ordered, func() {
var latestVersion string
It("should determine latest branch version", func() {
url := fmt.Sprintf("https://update.k3s.io/v1-release/channels/%s", *channel)
resp, err := http.Head(url)
resp, err := http.Get(url)
// Cover the case where the branch does not exist yet,
// such as a new unreleased minor version
if err != nil || resp.StatusCode != http.StatusOK {