consul-rust icon indicating copy to clipboard operation
consul-rust copied to clipboard

Fix putting extra quotes on kv values.

Open 0xAda opened this issue 4 years ago • 1 comments

Values stored using the KV API are currently serialized as json when they are already strings, this causes them to be put in quotes(#49). This pr adds 2 new methods to request.rs to send a put request with the body as bytes which is what consul is expecting.

0xAda avatar Jun 19 '21 01:06 0xAda

+1 to this. Although this PR should also address the get method, which is also expecting a JSON response (instead of bytes).

frannoriega avatar Jan 04 '22 15:01 frannoriega

@0x4da seems you had deleted the repository with the PR itself. And it did the work perfectly. Would you mind if I create a new PR based on your code citing you as the author if you cannot recreate one?

Parsing JSON from the base64 is addressed by other open PRs.

theirix avatar Nov 13 '22 20:11 theirix