diff --git a/src/Client.php b/src/Client.php index 8549db624b..f87acaeb72 100644 --- a/src/Client.php +++ b/src/Client.php @@ -1228,7 +1228,7 @@ protected function prepareBody() $body .= "--{$boundary}--\r\n"; } elseif (stripos($this->getEncType(), self::ENC_URLENCODED) === 0) { // Encode body as application/x-www-form-urlencoded - $body = http_build_query($this->getRequest()->getPost()->toArray()); + $body = http_build_query($this->getRequest()->getPost()->toArray(), null, '&'); } else { throw new Client\Exception\RuntimeException("Cannot handle content type '{$this->encType}' automatically"); }