mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
Fix: Early exit when deleting label
Allow status code 204 to be valid and not error on label delete
This commit is contained in:
parent
0e8ce186ca
commit
24438a2a27
@ -605,7 +605,7 @@ func (api *API) DeletePageLabel(page *PageInfo, label string) (*LabelInfo, error
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if request.Raw.StatusCode != http.StatusOK {
|
if request.Raw.StatusCode != http.StatusOK && request.Raw.StatusCode != http.StatusNoContent {
|
||||||
return nil, newErrorStatusNotOK(request)
|
return nil, newErrorStatusNotOK(request)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user