Skip to content

Commit

Permalink
Merge pull request #7 from SimonCropp/DisposeAsync
Browse files Browse the repository at this point in the history
DisposeAsync
  • Loading branch information
devlead authored Sep 25, 2024
2 parents cd69aa5 + e374fac commit c450d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Blobify/Commands/ArchiveCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ out var mimeType
case (HttpStatusCode.NotFound, _, _):
{
logger.LogInformation("Blob {File} not found, uploading...", targetPath.FullPath);
using var stream = file.OpenRead();
using var content = new StreamContent(stream) {
await using var stream = file.OpenRead();
using var content = new StreamContent(stream) {
Headers = {
ContentType = new MediaTypeHeaderValue(contentType),
ContentLength = file.Length,
Expand Down

0 comments on commit c450d40

Please sign in to comment.