Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino committed Jun 27, 2024
2 parents 609f90a + 373141f commit e3c71ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions http/httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ func (jc *HttpClient) UploadFileFromReader(reader io.Reader, url string, httpCli
if errorutils.CheckError(err) != nil || resp == nil {
return
}
if err = errorutils.CheckResponseStatus(resp, http.StatusCreated, http.StatusOK, http.StatusAccepted); err != nil {
return
}
defer func() {
if resp != nil && resp.Body != nil {
err = errors.Join(err, errorutils.CheckError(resp.Body.Close()))
}
}()
if err = errorutils.CheckResponseStatus(resp, http.StatusCreated, http.StatusOK, http.StatusAccepted); err != nil {
return
}
body, err = io.ReadAll(resp.Body)
err = errorutils.CheckError(err)
return
Expand Down
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
const (
Development = "development"
Agent = "jfrog-client-go"
Version = "1.40.2"
Version = "1.41.1"
)

type MinVersionProduct string
Expand Down

0 comments on commit e3c71ab

Please sign in to comment.