瀏覽代碼

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.")


Loading…
取消
儲存