We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43baad2 commit b69b24eCopy full SHA for b69b24e
lib/dalli/protocol/binary/response_processor.rb
@@ -52,7 +52,7 @@ def unpack_response_body(resp_header, body, parse_as_stored_value)
52
bitflags = extra_len.positive? ? body.unpack1('N') : 0x0
53
key = body.byteslice(extra_len, key_len).force_encoding(Encoding::UTF_8) if key_len.positive?
54
value = body.byteslice((extra_len + key_len)..-1)
55
- value = parse_as_stored_value ? @value_marshaller.retrieve(value, bitflags) : value
+ value = @value_marshaller.retrieve(value, bitflags) if parse_as_stored_value
56
[key, value]
57
end
58
0 commit comments