From 76a532e994428eb8d2efd983e0f2a284e4324c79 Mon Sep 17 00:00:00 2001 From: ameoba32 Date: Thu, 3 Dec 2015 15:20:12 -0500 Subject: [PATCH] Update Client.php [FIX] Do not break http standard if wrong separator is set --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }