mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Response Body Does Not Include Text After Path Segment #651
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 @adambricelis on GitHub (Nov 19, 2024).
Originally assigned to: @StefH on GitHub.
Describe the bug
When a field in the response body is prefixed with a path segment from the request, the text after that path segment is not included in the response body.
Expected behavior:
WireMock should evaluate all of the text in the mapping and include all of it in the response.
Test to reproduce
Mapping:
Request:
GET http://{WIREMOCK_SERVER_HOST}/pathExpected response:
Actual response:
Other related info
This issue only occurs when the request path segment is the prefix of a field in the response body. Adding any characters before the request path segment resolves the issue.
Mapping:
Request:
GET http://{WIREMOCK_SERVER_HOST}/pathResponse:
@StefH commented on GitHub (Nov 21, 2024):
https://github.com/WireMock-Net/WireMock.Net/pull/1213