Skip to content

Commit

Permalink
ensure we normalize so that the json comparison is the fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed Aug 21, 2024
1 parent 719b270 commit aaef1d4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ public RecordEntry Lookup(RecordEntry requestEntry, RecordMatcher matcher, IEnum
sanitizer.Sanitize(requestEntry);
}

// normalize request body with STJ using relaxed escaping to match behavior when Deserializing from session files
RecordEntry.NormalizeJsonBody(requestEntry.Request);

RecordEntry entry = matcher.FindMatch(requestEntry, Entries);
if (remove)
{
Expand Down

0 comments on commit aaef1d4

Please sign in to comment.