ソースを参照

Catch delete's 204 success response

pull/6/head
Matt Baer 7年前
コミット
436e840f2e
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      post.go

+ 1
- 1
post.go ファイルの表示

@@ -127,7 +127,7 @@ func (c *Client) DeletePost(sp *PostParams) error {
}

status := env.Code
if status == http.StatusOK {
if status == http.StatusNoContent {
return nil
} else if c.isNotLoggedIn(status) {
return fmt.Errorf("Not authenticated.")


読み込み中…
キャンセル
保存