diff --git a/consul/base.py b/consul/base.py index ee6ab254..08735d25 100755 --- a/consul/base.py +++ b/consul/base.py @@ -510,7 +510,7 @@ def get( "LockIndex": 200, "Key": "foo", "Flags": 0, - "Value": "bar", + "Value": b"bar", "Session": "adf4238a-882b-9ddc-4a9d-5b6758e4159e" } @@ -680,7 +680,7 @@ def put(self, payload): "KV": { "Verb": "", "Key": "", - "Value": "", + "Value": b"", "Flags": 0, "Index": 0, "Session": "" diff --git a/docs/index.rst b/docs/index.rst index cff19c19..cce5f7b4 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -25,7 +25,7 @@ creating server components - but it does serve as a base. It makes use of the >>> index, data = c.kv.get('foo') >>> data['Value'] - 'bar' + b'bar' # this will block until there's an update or a timeout >>> index, data = c.kv.get('foo', index=index)