Skip to content

Commit abbefd7

Browse files
committed
fix: parse binary response
Signed-off-by: Gabor Boros <[email protected]>
1 parent 2c5951a commit abbefd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rethinkdb/encoder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def convert_pseudo_type(self, obj: Dict[str, Any]) -> Any:
187187
None: lambda x: x,
188188
"GEOMETRY": lambda x: x,
189189
"BINARY": lambda x: self.__convert_pseudo_type(
190-
x, "binary_format", self.convert_time
190+
x, "binary_format", self.convert_binary
191191
),
192192
"GROUPED_DATA": lambda x: self.__convert_pseudo_type(
193193
x, "group_format", self.convert_grouped_data

rethinkdb/net.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ def get_json_decoder(self, query):
10341034
"""
10351035
Return the related json decoder.
10361036
"""
1037-
return (query.json_decoder or self._json_decoder)(query.kwargs)
1037+
return (query.json_decoder or self._json_decoder)(reql_format_opts=query.kwargs)
10381038

10391039
def get_json_encoder(self, query):
10401040
"""

0 commit comments

Comments
 (0)