Closed luizmmds closed 4 years ago
Any chance you know English? What problem does this solve exactly?
Sorry, I thought that the PR was for the company where I work hehe
@luizmmds then this can be closed?
@sigmavirus24 I don't think so. I have this problem because I was sending Accept-Encoding: "gzip"
on the request's header. Maybe, it would be interesting the possibility to replace the info inside base64_string too.
@luizmmds we've rejected in the past because it becomes incredibly complex and can defeat the reproducibility that betamax strives for. To alter the Gzip compressed body, we'd have to decompress it, alter it, recompress it and then update the content-length header. We'd have to jump through that for every replay. So we'd do it once on recording (when creating the cassette) then every time you replay it, in order to substitute the contents in the body. Further, we would have to store extra information if we wanted to avoid decompressing every gzipped body to check for substitution. That would prevent our cassettes from being portable between Python and Ruby clients using VCR.
Hummm, okay. I'll close and think another solution. Thanks
if the server allow base64 encoding, the info is saved on base64_string. Betamax does not verify this field. Some sensitive information was sending on the requests and betamax was not replacing its