Skip to content

Commit 6f5a8db

Browse files
Inna-not-botmissLylue
authored andcommitted
Fixed content range header
1 parent 30ccf11 commit 6f5a8db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Kontur.Extern.Api.Client/ApiLevel/Clients/Contents/ContentsClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public Task<ContentResponse> StartUploadAsync(Guid accountId, byte[] content, lo
1919
{
2020
var request = http.Post($"v1/{accountId}/contents")
2121
.WithBytes(content)
22-
.ContentRange(from, to, contentLength)
22+
.ContentRange(from, to)
2323
.Accept(ContentTypes.Json);
2424
return SendRequestAsync<ContentResponse>(request, timeout);
2525
}
@@ -28,7 +28,7 @@ public Task<ContentResponse> StartUploadAsync(Guid accountId, Stream stream, lon
2828
{
2929
var request = http.Post($"v1/{accountId}/contents")
3030
.WithPayload(new StreamPayload(stream))
31-
.ContentRange(from, to, contentLength)
31+
.ContentRange(from, to)
3232
.Accept(ContentTypes.Json);
3333
return SendRequestAsync<ContentResponse>(request, timeout);
3434
}
@@ -37,7 +37,7 @@ public Task<UploadChunkResponse> UploadChunkAsync(Guid accountId, Guid contentId
3737
{
3838
var request = http.Put($"v1/{accountId}/contents/{contentId}")
3939
.WithBytes(contentChunk)
40-
.ContentRange(from, to, contentLength)
40+
.ContentRange(from, to)
4141
.Accept(ContentTypes.Json);
4242
return SendRequestAsync<UploadChunkResponse>(request, timeout);
4343
}

0 commit comments

Comments
 (0)