myronmarston/vcr — pull request #135 by myronmarston (2012-02-13 04:09:43+00:00)
Title: Preserve exact bytes

@evanbattaglia, @Fluxx -- want to code review this? This is the new config option for #74.

Part of the changes here are to store the encoding of the request and response bodies. I use it for the base64_string case to force encode the string back to the original encoding. I'm not sure if I should do anything with the encoding for the non-base64 case. I think it could be useful to use the encoding to set the encoding when the cassette is deserialized but I'm not sure if we should do that or not. Thoughts?