瀏覽代碼

check for status created code

Alexander Belanger 4 年之前
父節點
當前提交
bafb3573c5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      internal/integrations/bind/bind.go

+ 1 - 1
internal/integrations/bind/bind.go

@@ -100,7 +100,7 @@ func (c *Client) sendRequest(method string, data *RecordData) error {
 
 	defer res.Body.Close()
 
-	if res.StatusCode != http.StatusOK {
+	if res.StatusCode != http.StatusOK && res.StatusCode != http.StatusCreated {
 		resBytes, err := ioutil.ReadAll(res.Body)
 
 		if err != nil {