Skip to content

Commit

Permalink
Use batch apiVersion if available
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalFlow committed May 2, 2023
1 parent 84abe50 commit 5ee2379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/WebApiClient.Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@
throw new Error("Batch for execution must be a WebApiClient.Batch object");
}

var url = WebApiClient.GetApiUrl(params) + "$batch";
var url = WebApiClient.GetApiUrl(batch) + "$batch";

batch.headers = batch.headers || [];
batch.headers.push({key: "Content-Type", value: "multipart/mixed;boundary=" + batch.name});
Expand Down

0 comments on commit 5ee2379

Please sign in to comment.