Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCR fix: Discard and close body regardless of status code #224

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

somtochiama
Copy link
Member

A little follow-up on the #194 to ensure the response body is closed regardless of status code

Signed-off-by: Somtochi Onyekwere somtochionyekwere@gmail.com

@stefanprodan stefanprodan requested a review from squaremo January 20, 2022 10:35
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
@squaremo
Copy link
Member

(I think the CI is failing because there's a stray space that gets gofmt'd out, meaning the "is the working tree dirty?" check fails)

Copy link
Member

@squaremo squaremo left a comment

Choose a reason for hiding this comment

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

Yup looks right, thanks Somtochi.

@stefanprodan stefanprodan changed the title Discard and close body regardless of status code GCR fix: Discard and close body regardless of status code Jan 20, 2022
@stefanprodan stefanprodan merged commit 83daf2e into fluxcd:main Jan 20, 2022
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.

3 participants