removing body for DELETE req
This commit is contained in:
@@ -14,8 +14,8 @@ class Unicorn {
|
|||||||
return Unicorn::request(HttpMethod::POST, $url, $body, $headers);
|
return Unicorn::request(HttpMethod::POST, $url, $body, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function delete($url, $headers = array(), $body = NULL) {
|
public static function delete($url, $headers = array()) {
|
||||||
return Unicorn::request(HttpMethod::DELETE, $url, $body, $headers);
|
return Unicorn::request(HttpMethod::DELETE, $url, NULL, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function put($url, $headers = array(), $body = NULL) {
|
public static function put($url, $headers = array(), $body = NULL) {
|
||||||
@@ -85,4 +85,4 @@ class Unicorn {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user