Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed behavior for DELETE method

  • Loading branch information...
commit 1f8635ac77364a5556f77dc832e786dd5d4d7625 1 parent 7375b00
@thousandsofthem thousandsofthem authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 IronCore.class.php
View
6 IronCore.class.php
@@ -5,13 +5,13 @@
* @link https://github.com/iron-io/iron_core_php
* @link http://www.iron.io/
* @link http://dev.iron.io/
- * @version 0.1.0
+ * @version 0.1.1
* @package IronCore
* @copyright BSD 2-Clause License. See LICENSE file.
*/
class IronCore{
- protected $core_version = '0.1.0';
+ protected $core_version = '0.1.1';
// should be overridden by child class
protected $client_version = null;
@@ -189,9 +189,9 @@ protected function apiCall($type, $url, $params = array(), $raw_post_data = null
}
switch ($type) {
case self::DELETE:
- $url .= '?' . http_build_query($params);
curl_setopt($this->curl, CURLOPT_URL, $url);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, self::DELETE);
+ curl_setopt($this->curl, CURLOPT_POSTFIELDS, json_encode($params));
break;
case self::PUT:
curl_setopt($this->curl, CURLOPT_URL, $url);
Please sign in to comment.
Something went wrong with that request. Please try again.