mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
WithPath and With(Method) ignored when WithBody is used #646
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @paul-green on GitHub (Nov 12, 2024).
Originally assigned to: @StefH on GitHub.
Describe the bug
.WithBody is always triggered even though the Url and Method is completely different to what has been specified
Expected behavior:
WithBody only executes when the Path/Url/Method match
Test to reproduce
Other related info
Provide additional information if any.
@StefH commented on GitHub (Nov 13, 2024):
@paul-green
I understand your issue, however this is by design.
All conditions are evaluated, there is no "stop on first mismatch" logic.