Skip to content

Conversation

digocorbellini
Copy link
Contributor

@digocorbellini digocorbellini commented Aug 10, 2022

Issue #, if available:

Description of changes:
Since the release of go 1.19, the EKS tests: TestEKSDefaultService and TestEKSDefaultService_FailLatestReleaseUseFallbackStaticVersion were failing due to the path to the testing zip file amazon-eks-ami-20210125.zip not being set correctly.

In eksGithubReleaseHTTPServer, w.Header().Add() was being called after w.WriteHeader() which would mean that the header map was not being modified. The go documentation for Header() states:
"Changing the header map after a call to WriteHeader (or Write) has no effect unless the HTTP status code was of the 1xx class or the modified headers are trailers."

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@digocorbellini digocorbellini requested a review from a team as a code owner August 10, 2022 22:44
@digocorbellini digocorbellini self-assigned this Aug 10, 2022
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wooo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants