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

Commit

Permalink
Removed extra call addPostFiles method
Browse files Browse the repository at this point in the history
  • Loading branch information
spolischook authored and fabpot committed May 21, 2015
1 parent c0cea6d commit e378002
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 e378002

Please sign in to comment.