This website works better with JavaScript.
Home
Explore
Help
Sign In
writeas
/
go-writeas
mirror of
https://github.com/writeas/go-writeas.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
9
Activity
Browse Source
Catch delete's 204 success response
pull/6/head
Matt Baer
7 years ago
parent
352395e604
commit
436e840f2e
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
post.go
+ 1
- 1
post.go
View File
@@ -127,7 +127,7 @@ func (c *Client) DeletePost(sp *PostParams) error {
}
status := env.Code
if status == http.Status
OK
{
if status == http.Status
NoContent
{
return nil
} else if c.isNotLoggedIn(status) {
return fmt.Errorf("Not authenticated.")
Write
Preview
Loading…
Cancel
Save