Skip to content

Commit

Permalink
Merge pull request #15 from BianoCZ/expects-fix
Browse files Browse the repository at this point in the history
Setting request headers fix
  • Loading branch information
kukulich committed Apr 8, 2015
2 parents 7c5a225 + 1fae5bb commit a412a87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Jyxo/Webdav/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,7 @@ protected function createRequest($server, $path, $method, array $headers = array
$request = new \http\Client\Request($method, $server . $path);
$request->setOptions($this->curlOptions);
$request->setSslOptions($this->curlSslOptions);
$request->setHeader('Expect', '');
$request->setHeaders($headers);
$request->setHeaders($headers + array('Expect' => ''));
return $request;
}

Expand Down

0 comments on commit a412a87

Please sign in to comment.