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

fix: http check fails when responseContent is non-empty #2360

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

EugeneBad
Copy link
Contributor

@EugeneBad EugeneBad commented Dec 6, 2024

The HTTP check currently fails when the responseContent is set to a non-empty string. This appears to be due to a bug in the httpchecker; that checks expected content against request body instead of the response body.

This fixes it by refactoring the responseContent check to use the returned responseBody object.

@CLAassistant
Copy link

CLAassistant commented Dec 6, 2024

CLA assistant check
All committers have signed the CLA.

@EugeneBad EugeneBad changed the title fix: check responseContent in responseBody fix: http check fails when responseContent is non-empty Dec 6, 2024
@moshloop
Copy link
Member

moshloop commented Dec 9, 2024

@EugeneBad thank you for your contribution

@moshloop moshloop merged commit 69f48c9 into flanksource:master Dec 9, 2024
15 of 16 checks passed
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