Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Commit

Permalink
minor #213 Removed extra call addPostFiles method (spolischook)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 2.0-dev branch (closes #213).

Discussion
----------

Removed extra call addPostFiles method

Commits
-------

e378002 Removed extra call addPostFiles method
  • Loading branch information
fabpot committed May 21, 2015
2 parents c0cea6d + e378002 commit 3578769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Goutte/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected function doRequest($request)
$guzzleRequest->setHeader($name, $value);
}

if ('POST' == $request->getMethod() || 'PUT' == $request->getMethod()) {
if ('POST' == $request->getMethod() || 'PUT' == $request->getMethod() && $request->getFiles()) {
$this->addPostFiles($guzzleRequest, $request->getFiles());
}

Expand Down

0 comments on commit 3578769

Please sign in to comment.