* replace endpoint `POST server_busy/clear` with the more RESTful idiomatic `DELETE server_busy` to clear the busy flag
Этот коммит содержится в:
Doug Lauder
2020-01-21 10:48:50 -05:00
коммит произвёл Ben Schumacher
родитель c4ce55f0b7
Коммит 173c4abb0d
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -4684,7 +4684,7 @@ func (c *Client4) SetServerBusy(secs int) (bool, *Response) {
// ClearServerBusy will mark the server as not busy.
func (c *Client4) ClearServerBusy() (bool, *Response) {
r, err := c.DoApiPost(c.GetServerBusyRoute()+"/clear", "")
r, err := c.DoApiDelete(c.GetServerBusyRoute())
if err != nil {
return false, BuildErrorResponse(r, err)
}