Skip to content

Commit

Permalink
Merge pull request #7 from dominikzogg/master
Browse files Browse the repository at this point in the history
put an patch could contain data too
  • Loading branch information
Mulkave committed Oct 27, 2014
2 parents 5aeed02 + d5b17d8 commit 0bc34a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Vinelab/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ public function send()
CURLOPT_MAXREDIRS => 50
);

if ($this->method === static::method('POST'))
{
if ($this->method === static::method('POST')
|| $this->method === static::method('PUT')
|| $this->method === static::method('PATCH')
) {
if (count($this->params) > 0)
{
$cURLOptions[CURLOPT_POST] = count($this->params);
Expand Down

0 comments on commit 0bc34a7

Please sign in to comment.