diff --git a/issue.go b/issue.go index 0949ea1..f254833 100644 --- a/issue.go +++ b/issue.go @@ -718,7 +718,7 @@ func (s *IssueService) UpdateComment(issueID string, comment *Comment) (*Comment Body: comment.Body, } apiEndpoint := fmt.Sprintf("rest/api/2/issue/%s/comment/%s", issueID, comment.ID) - req, err := s.client.NewRequest("POST", apiEndpoint, reqBody) + req, err := s.client.NewRequest("PUT", apiEndpoint, reqBody) if err != nil { return nil, nil, err } diff --git a/issue_test.go b/issue_test.go index 8a378b7..2ee3668 100644 --- a/issue_test.go +++ b/issue_test.go @@ -157,7 +157,7 @@ func TestIssueService_UpdateComment(t *testing.T) { setup() defer teardown() testMux.HandleFunc("/rest/api/2/issue/10000/comment/10001", func(w http.ResponseWriter, r *http.Request) { - testMethod(t, r, "POST") + testMethod(t, r, "PUT") testRequestURL(t, r, "/rest/api/2/issue/10000/comment/10001") w.WriteHeader(http.StatusCreated)