forked from vcr/vcr
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some improvements to @tylerhunt's faraday multipart upload fix.
- Add tests. - Move the body reading out of #vcr_request and into a helper method-- we don't want it to happen multiple times and #vcr_request is memoized for a reason. - Refactor the body reading a bit. - Use it for the response body, too. I don't really understand it, but for some reason the multipart request body becomes the response body when no HTTP adapter is set, and due to the change I made in d924f66, an error was raised. Closes vcr#172.
- Loading branch information
1 parent
cec9fe3
commit 4752496
Showing
4 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters