From 8400658fbc9f786ace2eb7a9b60c5119bea0f0ba Mon Sep 17 00:00:00 2001 From: jjtt <3908945+jjtt@users.noreply.github.com> Date: Sat, 25 Nov 2023 08:59:00 +0200 Subject: [PATCH] feat(inser): include options (#90) Commit 79f5ab48ad906948c6011ef0748678ebccfda9b3 added support for `with_option()` and this commit includes those options also in the URL of inserts. --- src/insert.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/insert.rs b/src/insert.rs index 01334d9..4d71737 100644 --- a/src/insert.rs +++ b/src/insert.rs @@ -79,6 +79,10 @@ impl Insert { pairs.append_pair("decompress", "1"); } + for (name, value) in &client.options { + pairs.append_pair(name, value); + } + drop(pairs); let mut builder = Request::post(url.as_str());