Skip to content

Commit 5289b68

Browse files
czoIgrobert.kubac
authored and
robert.kubac
committed
Fix redmine response status handling. Ref mattn#51
1 parent 3f524d6 commit 5289b68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (c *Client) UpdateIssue(issue Issue) error {
192192
if res.StatusCode == 404 {
193193
return errors.New("Not Found")
194194
}
195-
if res.StatusCode != 200 {
195+
if res.StatusCode/100 != 2 {
196196
decoder := json.NewDecoder(res.Body)
197197
var er errorsResult
198198
err = decoder.Decode(&er)

0 commit comments

Comments
 (0)