Open hroncok opened 7 years ago
Can confirm, this is a useful trick for having reader cassettes.
I suppose the risk is that the endpoint ignores or rejects the identity set-encoding header?
Well I can mention that risk as well.
Be aware that some endpoints may ignore or reject the identity set-encoding header.
Hi, @MarekSuchanek was recently hit by the fact that some content is recorded Gziped and base64 encoded. It is hard to parse the response in a hook to hide sensitive data, if the sensitive data is hidden in a binary blob.
In the docs, it says:
However (with pytest fixture) simply doing:
Will bypass the problem.
I was about to propose a PR to the docs, but I better discuss it first with you before making a patch. The text at the end of the section might go like this:
You may, however, modify the request headers to indicate that you don't accept gzipped content:
Comments?