You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK - success
NotFound - {"Status":"No matching mapping found"}
Other related info
From my limited debugging, I've noticed that the request log shows different behavior. In the first case, it shows that DetectedBodyType = Bytes, while in the second case it's DetectedBodyType = String. In both cases the DetectedBodyTypeFromContentType = Bytes.
I don't expect WireMock to transform a request to a string automatically and then fail to match because it expects a byte array.
The text was updated successfully, but these errors were encountered:
Describe the bug
Exact matching on byte arrays sometimes fails, depending on the byte array contents.
Expected behavior:
Exact matching should succeed, no matter what the byte array contents are, as long as it's the same.
Test to reproduce
The following code reproduces the bug:
The output:
Other related info
From my limited debugging, I've noticed that the request log shows different behavior. In the first case, it shows that DetectedBodyType = Bytes, while in the second case it's DetectedBodyType = String. In both cases the DetectedBodyTypeFromContentType = Bytes.
I don't expect WireMock to transform a request to a string automatically and then fail to match because it expects a byte array.
The text was updated successfully, but these errors were encountered: