Pārlūkot izejas kodu

Catch delete's 204 success response

pull/6/head
Matt Baer pirms 7 gadiem
vecāks
revīzija
436e840f2e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      post.go

+ 1
- 1
post.go Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt