Skip to content

Commit c450d40

Browse files
authored
Merge pull request #7 from SimonCropp/DisposeAsync
DisposeAsync
2 parents cd69aa5 + e374fac commit c450d40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Blobify/Commands/ArchiveCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ out var mimeType
7373
case (HttpStatusCode.NotFound, _, _):
7474
{
7575
logger.LogInformation("Blob {File} not found, uploading...", targetPath.FullPath);
76-
using var stream = file.OpenRead();
77-
using var content = new StreamContent(stream) {
76+
await using var stream = file.OpenRead();
77+
using var content = new StreamContent(stream) {
7878
Headers = {
7979
ContentType = new MediaTypeHeaderValue(contentType),
8080
ContentLength = file.Length,

0 commit comments

Comments
 (0)