Skip to content

Commit

Permalink
Fix HTTP method for EditProject with avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
timofurrer committed Jul 15, 2022
1 parent 4a79f74 commit cf40536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects.go
Expand Up @@ -897,7 +897,7 @@ func (s *ProjectsService) EditProject(pid interface{}, opt *EditProjectOptions,
req, err = s.client.NewRequest(http.MethodPut, u, opt, options)
} else {
req, err = s.client.UploadRequest(
http.MethodPost,
http.MethodPut,
u,
opt.Avatar.Image,
opt.Avatar.Filename,
Expand Down

0 comments on commit cf40536

Please sign in to comment.