mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Wrong mapping is matched with different value for same url param #217
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 @gregoks on GitHub (Oct 10, 2019).
Hi again! :)
Can you please check if its a bug for case when I have 2 mappings with the same url param but with different values:
first mapping:
second mapping:
For these 2 API calls:
I get the same following response:
hello ar
Obviously I expect to get "hello ru" for the first one.
I have also noticed that if you change the values of the param to numbers it works correctly for some reason :|
These are my requests:
@StefH commented on GitHub (Oct 10, 2019):
A regex like [ar] will match any the character
aandr.If you need exact match you need:
^ar$and
^ru$@gregoks commented on GitHub (Oct 15, 2019):
my bad! Thanks @StefH
@StefH commented on GitHub (Oct 15, 2019):
closing