Skip to content

Commit

Permalink
Fix body matcher binary argument not passing through
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Jun 17, 2024
1 parent 6fd02c6 commit 2715c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pook/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def body(self, body, binary=False):
self: current Mock instance.
"""
self._request.body = body
self.add_matcher(matcher("BodyMatcher", body, binary=False))
self.add_matcher(matcher("BodyMatcher", body, binary=binary))
return self

def json(self, json):
Expand Down

0 comments on commit 2715c7c

Please sign in to comment.