From 436e840f2e21c94c28abc6e8bccad85cf509e810 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 5 Sep 2016 02:03:03 -0400 Subject: [PATCH] Catch delete's 204 success response --- post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.go b/post.go index c29e3fa..7102a85 100644 --- a/post.go +++ b/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.")