浏览代码

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


正在加载...
取消
保存