From cf40536870383a522f09a3f4ab521fb39b6c37d0 Mon Sep 17 00:00:00 2001 From: Timo Furrer Date: Fri, 15 Jul 2022 15:17:07 +0200 Subject: [PATCH] Fix HTTP method for EditProject with avatar --- projects.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects.go b/projects.go index d9c83d252..1aadf902b 100644 --- a/projects.go +++ b/projects.go @@ -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,