1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Add support for posting files through requests. closes #121. Possibly #134.

This commit is contained in:
Ivan Malison
2015-03-24 13:27:23 -07:00
parent 7cd7264034
commit 6602a449b1
3 changed files with 24 additions and 1 deletions

View File

@@ -31,6 +31,8 @@ def query(r1, r2):
def body(r1, r2):
if hasattr(r1.body, 'read') and hasattr(r2.body, 'read'):
return r1.body.read() == r2.body.read()
return r1.body == r2.body