We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f0fe25 commit c747d81Copy full SHA for c747d81
clients/dotnet/WebClient/MemoryWebClient.cs
@@ -242,7 +242,8 @@ public async Task<StreamableFileContent> ExportFileAsync(
242
string? index = null,
243
CancellationToken cancellationToken = default)
244
{
245
- string requestUri = $"{Constants.HttpDownloadEndpoint}?index={index}&documentId={documentId}&filename={fileName}";
+ string indexParam = index != null ? $"index={index}&" : "";
246
+ string requestUri = $"{Constants.HttpDownloadEndpoint}?{indexParam}documentId ={documentId}&filename={fileName}";
247
HttpResponseMessage? response = await this._client.GetAsync(requestUri, cancellationToken).ConfigureAwait(false);
248
249
response.EnsureSuccessStatusCode();
0 commit comments