Decode compressed response
See original GitHub issueI have the following in my conftest.py:
@pytest.fixture(scope="module")
def vcr_config():
return {
"cassette_library_dir": f"{TESTS_DIR}/fixtures/cassettes",
"decode_compressed_response": True,
"filter_headers": ["authorization"]
}
But decoding is happening intermittently.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Decode compressed response - Cassettes - Vcr - Relish
Decode compressed response. When the :decode_compressed_response option is set to a truthy value, VCR will decompress "gzip" and "deflate" response bodies ...
Read more >GZip Decompress Online to Gzip Decode Text - Code Beautify
Gzip to Decompress tool to gzip decode Online helps to convert Gzip Text to plain Text and helps to save and share Gzip...
Read more >Decode Compressed Response - VCR - GitBook
When the :decode_compressed_response option is set to a truthy value, VCR will decompress "gzip" and "deflate" response bodies before recording.
Read more >How to decode the gzip compressed data returned in a HTTP ...
When I get the response from the third server I am not able to decode the gzip compressed data, I first split the...
Read more >Content-Encoding - HTTP - MDN Web Docs
Content encoding is mainly used to compress the message data without losing information about the origin media type.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see, very good explanation. Thanks @Stranger6667.
I.e.
www.google.com
returns responses in different encodings for different user-agents 😃 And then they are stored differently