Skip to content

Commit

Permalink
deleting from a partition key client requires IfMatchCondition (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
demoray authored Feb 15, 2023
1 parent 6942ac3 commit 3b7d7a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/data_tables/src/operations/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ impl TransactionBuilder {

let mut request = Request::new(url, Method::Delete);
request.insert_header(ACCEPT, "application/json;odata=minimalmetadata");
request.add_optional_header(&match_condition);

let match_condition = match_condition.unwrap_or(IfMatchCondition::Any);
request.add_mandatory_header(&match_condition);
request.set_body("");

self.transaction.add(TransactionOperation::new(request));
Expand Down

0 comments on commit 3b7d7a5

Please sign in to comment.