Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Maya-Painter committed Jun 19, 2023
1 parent 59cce85 commit 7de7e99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ await this.Client.EnsureValidOverwriteAsync(
requestHeaders.Set(HttpConstants.HttpHeaders.MergeStaticId, this.feedOptions.MergeStaticId);
}

requestHeaders[HttpConstants.HttpHeaders.SupportedSerializationFormats] = this.feedOptions.SupportedSerializationFormats != null
? this.feedOptions.SupportedSerializationFormats.Value.ToString()
: DefaultSupportedSerializationFormats;
requestHeaders[HttpConstants.HttpHeaders.SupportedSerializationFormats] = this.feedOptions.SupportedSerializationFormats?.ToString() ?? DefaultSupportedSerializationFormats;

return requestHeaders;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@ internal override void PopulateRequestOptions(RequestMessage request)
request.Headers.Add(HttpConstants.HttpHeaders.ResponseContinuationTokenLimitInKB, this.ResponseContinuationTokenLimitInKb.ToString());
}

request.Headers.CosmosMessageHeaders.SupportedSerializationFormats = this.SupportedSerializationFormats != null
? this.SupportedSerializationFormats.ToString()
: DocumentQueryExecutionContextBase.DefaultSupportedSerializationFormats;
request.Headers.CosmosMessageHeaders.SupportedSerializationFormats = this.SupportedSerializationFormats?.ToString() ?? DocumentQueryExecutionContextBase.DefaultSupportedSerializationFormats;

if (this.StartId != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private void ValidateJsonSerializationFormatQuery(DocumentClient client, Documen
}

[TestMethod]
[Owner("hdetroja")]
[Owner("maya-painter")]
public void ValidateSupportedSerializationFormatsGateway()
{
DocumentClient client = TestCommon.CreateClient(true);
Expand Down

0 comments on commit 7de7e99

Please sign in to comment.