Skip to content

Commit

Permalink
fix missing str to byte operation of fl params in encode_search_query…
Browse files Browse the repository at this point in the history
… method of codecs.pbuf module
  • Loading branch information
alirizakeles committed Mar 21, 2017
1 parent ac36ad1 commit b0ee21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riak/codecs/pbuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,9 @@ def encode_search_query(self, req, **kwargs):
req.op = kwargs['q.op']
if 'fl' in kwargs:
if isinstance(kwargs['fl'], list):
req.fl.extend(kwargs['fl'])
req.fl.extend([str_to_bytes(fl) for fl in kwargs['fl']])
else:
req.fl.append(kwargs['fl'])
req.fl.append(str_to_bytes(kwargs['fl']))
if 'presort' in kwargs:
req.presort = kwargs['presort']

Expand Down

0 comments on commit b0ee21a

Please sign in to comment.