Skip to content

Commit

Permalink
Merge pull request #369 from Optum/hotfix-empty-requests
Browse files Browse the repository at this point in the history
more flexible matching of empty request bodies
  • Loading branch information
zparks authored Feb 26, 2019
2 parents 9b61698 + b1ff9af commit 32e289a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/virtual.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function registerRRPair(service, rrpair) {
}
}

if ((!rrpair.reqData && JSON.stringify(payload, null, 2)=='{}')|| match) {
if ((!rrpair.reqData && !payload) || match) {
// check request queries
if (rrpair.queries) {
// try the next rr pair if no queries were sent
Expand Down

0 comments on commit 32e289a

Please sign in to comment.