Skip to content

Commit

Permalink
download: Call finish on request
Browse files Browse the repository at this point in the history
  • Loading branch information
Hejsil committed Jul 7, 2024
1 parent d77cd77 commit 806bfa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ fn download(client: *std.http.Client, uri_str: []const u8, writer: anytype) !voi
defer request.deinit();

try request.send();
try request.finish();
try request.wait();

if (request.response.status != .ok)
Expand Down

0 comments on commit 806bfa0

Please sign in to comment.