Skip to content

Commit

Permalink
Curl fix for HTTP DELETE METHOD
Browse files Browse the repository at this point in the history
  • Loading branch information
dmzoneill committed Mar 13, 2018
1 parent 404a8ff commit a8804eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ private function httpRequest($url, $method = "GET", $params = [], $signed = fals
curl_setopt($ch, CURLOPT_POST, true);
//curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
}

// Delete Method
if($method == "DELETE") {
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
}

// proxy settings
if(is_array($this->proxyConf)) {
curl_setopt($ch, CURLOPT_PROXY, $this->getProxyUriString());
Expand Down

1 comment on commit a8804eb

@jaggedsoft
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all your hard work! Issuing a new release now

Please sign in to comment.