Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/zendframework/zendframework#6318-fix-zendframewo…
Browse files Browse the repository at this point in the history
…rk/zf2#6315-add-body-to-curl-delete-request' into develop

Forward port zendframework/zendframework#6318
  • Loading branch information
Ocramius committed Jul 27, 2014
3 parents 9f22886 + 2aef442 + 87d54cc commit b286e16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Client/Adapter/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ public function write($method, $uri, $httpVersion = 1.1, $headers = array(), $bo
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
} elseif ($method == 'PATCH') {
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
} elseif ($method == 'DELETE' && $body) {
// DELETE requests can also have a body
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
}

// set additional curl options
Expand Down

0 comments on commit b286e16

Please sign in to comment.