Skip to content

Commit 5ee2379

Browse files
authored
Use batch apiVersion if available
1 parent 84abe50 commit 5ee2379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/WebApiClient.Core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@
941941
throw new Error("Batch for execution must be a WebApiClient.Batch object");
942942
}
943943

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

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

0 commit comments

Comments
 (0)