mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Query string parameter value which contains %26 does not work with ExactMatcher #233
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 @mhartigh on GitHub (Dec 5, 2019).
Hi,
I am trying to get a mapping matched with the ExactMatcher but I can't succeed to make it work.
The input value on the form is escaped with Uri.EscapeDataString before the GET request is fired but every GET request results in a "404 - No matching mapping found".
It does look like wiremock cannot deal with querystring values containing a & (%26) because this will result in a separate parameter.
Mapping:
Request:
Do you have any idea how to work around this?
@StefH commented on GitHub (Dec 5, 2019):
Related to https://github.com/WireMock-Net/WireMock.Net/issues/336 ?
@StefH commented on GitHub (Dec 5, 2019):
@mhartigh
It should be fixed, can you please test version
WireMock.Net.1.0.38-ci-12272.nupkgfrom MyGet?@mhartigh commented on GitHub (Dec 9, 2019):
@StefH Yes this package has the correct behavior. Thank you very much!,
What do you suggest. To stick with this package for a while or will the fix be included in a release version very soon?
@StefH commented on GitHub (Dec 9, 2019):
I can plan to release a new official version tonight. Just keep an eye on this issue, when it's closed then you can switch to the official NuGet.