-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request matching fails for empty bodies when "body" is one of the matchers #157
Comments
thanks, having a look |
sckott
added a commit
that referenced
this issue
Feb 20, 2020
uses webmockr::pluck_body which returns NULL if the body is empty if pluck_body gives NULL, change it to an empty string "" to match what is on disk in cassettes
@aaronwolen see branch https://github.com/ropensci/vcr/compare/fix-empty-body-match I think this fixes it, all existing tests and checks work with this |
is this change risky at all? |
sckott
added a commit
that referenced
this issue
Feb 20, 2020
added a test file for this |
That worked for me and it seems like the right thing to do. What makes you think it might be risky? |
Merged
it works I think actually |
sckott
added a commit
that referenced
this issue
Feb 29, 2020
uses webmockr::pluck_body which returns NULL if the body is empty if pluck_body gives NULL, change it to an empty string "" to match what is on disk in cassettes
sckott
added a commit
that referenced
this issue
Feb 29, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same request fails to match w/
"body"
matching turned onbut matches fine when
"body"
matching is disabled:Created on 2020-02-19 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: