]> khamidou — GitHub mirrors - vcrpy.git/commit
Ensure that request bodies are always bytes, not text (fixes #163).
authorGreg Ward <gward@dyn.com>
Thu, 16 Jul 2015 18:36:26 +0000 (14:36 -0400)
committerGreg Ward <gward@dyn.com>
Thu, 16 Jul 2015 18:36:26 +0000 (14:36 -0400)
commit09b7ccf561b94e095c516305d9bfcb4d355f1882
treedc858059b6ece9a82d1d2428a0f61f364c80aa7d
parentbb05b2fcf7ccfe8fa7d5bd7012e752e0e2b3d74d
Ensure that request bodies are always bytes, not text (fixes #163).

It shouldn't matter whether the request body comes from a file or a
string, or whether it is passed to the Request constructor or assigned
later. It should always be stored internally as bytes.
tests/unit/test_serialize.py
vcr/matchers.py
vcr/request.py