Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal static MatchResult CalculateMatchScore(IBodyData? requestMessage, IMatc
{
// If the body is a byte array, try to match.
var detectedBodyType = requestMessage.DetectedBodyType;
if (detectedBodyType is BodyType.Bytes or BodyType.String or BodyType.FormUrlEncoded)
if (detectedBodyType is BodyType.Bytes or BodyType.String or BodyType.FormUrlEncoded || exactObjectMatcher.Value is byte[])
{
return exactObjectMatcher.IsMatch(requestMessage.BodyAsBytes);
}
Expand Down Expand Up @@ -74,4 +74,4 @@ internal static MatchResult CalculateMatchScore(IBodyData? requestMessage, IMatc

return default;
}
}
}
Loading