From e37800260c286c6415c9bb4e9a4835e15827e0f0 Mon Sep 17 00:00:00 2001 From: Sergey Polischook Date: Thu, 21 May 2015 21:10:47 +0800 Subject: [PATCH] Removed extra call addPostFiles method --- Goutte/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Goutte/Client.php b/Goutte/Client.php index 825210b..a4ebfc2 100644 --- a/Goutte/Client.php +++ b/Goutte/Client.php @@ -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()); }