Skip to content
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

Fix serialization in filesystem backend with binary content that is also valid UTF-8 #529

Merged
merged 1 commit into from Feb 15, 2022
Merged

Fix serialization in filesystem backend with binary content that is also valid UTF-8 #529

merged 1 commit into from Feb 15, 2022

Conversation

JWCook
Copy link
Member

@JWCook JWCook commented Feb 15, 2022

Fixes #507

@JWCook JWCook added bug serialization Features or changes related to response serialization labels Feb 15, 2022
@JWCook JWCook added this to the v0.9 milestone Feb 15, 2022
@JWCook JWCook merged commit 9b06688 into requests-cache:master Feb 15, 2022
@JWCook JWCook deleted the fix-binary-serializer-detection branch February 15, 2022 20:11
@@ -70,8 +74,8 @@ def safe_pickle_serializer(
import bson

bson_serializer = SerializerPipeline(
[bson_preconf_stage, bson]
) #: Complete BSON serializer; using pymongo's ``bson.json_util`` if installed, otherwise standalone ``bson`` codec
[bson_preconf_stage, bson], is_binary=False
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless I'm making a mistake, bson should have is_binary=True, right? It's one of the two binary formats pointed out in the original bug report: #507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug serialization Features or changes related to response serialization
Projects
None yet
2 participants