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: BodyContainsBytes & BodyContainsString used with And/Or #146

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

maxatome
Copy link
Collaborator

Both "rearm" the body before (re-)reading it, so they can be used several times in a same matcher (combined with Or & And).

Closes #145.

@maxatome maxatome force-pushed the matcher-rearm-body branch 3 times, most recently from 484a89e to 8447826 Compare July 24, 2023 07:59
Both "rearm" the body before (re-)reading it, so they can be used
several times in a same matcher (combined with Or & And).

At the same time, simplify the body copy and make the "rearming" more
performant.

Closes #145.

Signed-off-by: Maxime Soulé <[email protected]>
@maxatome maxatome merged commit 8b32cd6 into v1 Aug 16, 2023
11 checks passed
@maxatome maxatome deleted the matcher-rearm-body branch August 16, 2023 12:59
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.

Or() and And() don't work correctly
1 participant