`MatchRules().ByBody()` NullReferenceException when the `recorded` body is not empty, and the `received` body is an empty string
jhonny-apiiro opened this issue · 0 comments
jhonny-apiiro commented
Steps to reproduce:
- Configure a cassette to match
ByBody
- Record a request (either POST or GET) on the cassette which has a non-empty
Body
content - Replay the cassette, and execute a request where the
Body
content is an empty string (for example, therefit
library would do that when there's a request with no Body specifically defined)
Expected: The requests do not match
Actual: Null reference exception