Skip to content

Commit 1c028c5

Browse files
authored
Add Accept header to batch requests (Azure#24162)
1 parent cc05690 commit 1c028c5

25 files changed

+1396
-1179
lines changed

sdk/tables/Azure.Data.Tables/src/TableRestClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ internal HttpMessage CreateBatchRequest(MultipartContent content, string request
3838
{
3939
request.Headers.Add("Prefer", responsePreference.Value.ToString());
4040
}
41+
request.Headers.Add("Accept", "application/json");
4142

4243
request.Content = content;
4344
content.ApplyToRequest(request);

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/BatchError.json

Lines changed: 39 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/BatchErrorAsync.json

Lines changed: 39 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/BatchInsert.json

Lines changed: 53 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/BatchInsertAndMergeAndDelete(%partition'key''with'''singlequotes'%).json

Lines changed: 57 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/BatchInsertAndMergeAndDelete(%partition'key''with'''singlequotes'%)Async.json

Lines changed: 57 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/BatchInsertAndMergeAndDelete(%somPartition%).json

Lines changed: 57 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/BatchInsertAndMergeAndDelete(%somPartition%)Async.json

Lines changed: 57 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/BatchInsertAsync.json

Lines changed: 53 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(Storage)/BatchError.json

Lines changed: 37 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)