Skip to content

Commit

Permalink
Merge pull request #1337 from hensur/put-edit-project
Browse files Browse the repository at this point in the history
use put for EditProject
  • Loading branch information
svanharmelen authored Jan 7, 2022
2 parents 3d128ad + 37ded3f commit d909b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ func (s *ProjectsService) EditProject(pid interface{}, opt *EditProjectOptions,
var req *retryablehttp.Request

if opt.Avatar == nil {
req, err = s.client.NewRequest(http.MethodPost, u, opt, options)
req, err = s.client.NewRequest(http.MethodPut, u, opt, options)
} else {
req, err = s.client.UploadRequest(
http.MethodPost,
Expand Down

0 comments on commit d909b32

Please sign in to comment.