Body matching fails if body has newline #247

Closed
opened 2025-12-29 08:24:43 +01:00 by adam · 0 comments
Owner

Originally created by @NoahLerner on GitHub (Feb 13, 2020).

When using WildcardMatcher, even if using the following config in json mapping file:
"Body": { "Matcher": { "Name": "WildcardMatcher", "Pattern": "*" }
the mapping is never triggered if I have a newline in the request body. After removing the newline, the mapping is always triggered.

Originally created by @NoahLerner on GitHub (Feb 13, 2020). When using `WildcardMatcher`, even if using the following config in json mapping file: `"Body": { "Matcher": { "Name": "WildcardMatcher", "Pattern": "*" } ` the mapping is never triggered if I have a newline in the request body. After removing the newline, the mapping is always triggered.
adam added the bug label 2025-12-29 08:24:43 +01:00
adam closed this issue 2025-12-29 08:24:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#247