Skip to content

Commit

Permalink
fix: unpack tarball close in http handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ed382 committed Feb 21, 2025
1 parent 2e8eb99 commit 579cb48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/testworkflow-toolkit/transfer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func (t *server) handler() http.Handler {
}

err := common.UnpackTarball(dirPath, request.Body)
defer request.Body.Close()
if err != nil {
fmt.Printf("Warning: '%s' error while unpacking tarball to: %s\n", dirPath, err.Error())
writer.WriteHeader(http.StatusInternalServerError)
Expand Down

0 comments on commit 579cb48

Please sign in to comment.