Fixed BINARY length output
This commit is contained in:
parent
e514446603
commit
65b9a6d103
|
@ -273,7 +273,7 @@ class BSON
|
||||||
def serialize_binary_element(buf, key, val)
|
def serialize_binary_element(buf, key, val)
|
||||||
buf.put(BINARY)
|
buf.put(BINARY)
|
||||||
self.class.serialize_cstr(buf, key)
|
self.class.serialize_cstr(buf, key)
|
||||||
buf.put(val.length)
|
buf.put_int(val.length)
|
||||||
bytes = if RUBY_VERSION >= '1.9'
|
bytes = if RUBY_VERSION >= '1.9'
|
||||||
val.bytes.to_a
|
val.bytes.to_a
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue