Skip to content

Commit

Permalink
Update InternalRedmineApiWebClient.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
zapadi authored Aug 31, 2024
1 parent 27b4da6 commit 096d25c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public ApiResponseMessage Download(string address, RequestOptions requestOptions

public ApiResponseMessage Upload(string address, byte[] data, RequestOptions requestOptions = null)
{
var content = new ByteArrayApiRequestMessageContent(data);
var content = new StreamApiRequestMessageContent(data);
return HandleRequest(address, HttpVerbs.POST, requestOptions, content);
}

Expand Down Expand Up @@ -159,7 +159,7 @@ public async Task<ApiResponseMessage> UpdateAsync(string address, string payload

public async Task<ApiResponseMessage> UploadFileAsync(string address, byte[] data, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
{
var content = new ByteArrayApiRequestMessageContent(data);
var content = new StreamApiRequestMessageContent(data);
return await HandleRequestAsync(address, HttpVerbs.POST, requestOptions, content, cancellationToken:cancellationToken).ConfigureAwait(false);
}

Expand Down

0 comments on commit 096d25c

Please sign in to comment.