Skip to content

Commit

Permalink
Merge pull request #20 from dandanthedev/dev
Browse files Browse the repository at this point in the history
Wait until entire file is piped before sending 200
  • Loading branch information
dandanthedev authored Aug 9, 2024
2 parents 5e368d4 + aeaa54f commit ae474e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const requestListener = async function (
return resp(res, 200, foundFile, "file");
}
if (type === "upload") {
pipeFile(bucket, file, req);
await pipeFile(bucket, file, req);
return resp(res, 200);
}
if (type === "delete") {
Expand Down

0 comments on commit ae474e0

Please sign in to comment.