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

Add setter to body on vcr's request.

This commit is contained in:
Ivan Malison
2015-03-24 14:08:58 -07:00
parent 4b4be7f661
commit 5bd40a447a

View File

@@ -37,6 +37,10 @@ class Request(object):
def body(self):
return StringIO.StringIO(self._body) if self._was_file else self._body
@body.setter
def body(self, value):
self._body = value
def add_header(self, key, value):
# see class docstring for an explanation
if isinstance(value, (tuple, list)):