Skip to content

Commit

Permalink
feat(inser): include options (#90)
Browse files Browse the repository at this point in the history
Commit 79f5ab4 added support for
`with_option()` and this commit includes those options also in the URL
of inserts.
  • Loading branch information
jjtt authored Nov 25, 2023
1 parent 8c1cf9f commit 8400658
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/insert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ impl<T> Insert<T> {
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());
Expand Down

0 comments on commit 8400658

Please sign in to comment.