Skip to content

Commit

Permalink
Merge pull request #52 from czoIg/redmineResponseStatusFix
Browse files Browse the repository at this point in the history
Fix redmine response status handling. Ref #51
  • Loading branch information
mattn authored Jun 8, 2022
2 parents 16059ce + 5289b68 commit ea64217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (c *Client) UpdateIssue(issue Issue) error {
if res.StatusCode == 404 {
return errors.New("Not Found")
}
if res.StatusCode != 200 {
if res.StatusCode/100 != 2 {
decoder := json.NewDecoder(res.Body)
var er errorsResult
err = decoder.Decode(&er)
Expand Down

0 comments on commit ea64217

Please sign in to comment.