From 84bfb17423ddc4fa296993ae599c109f68b89441 Mon Sep 17 00:00:00 2001 From: Novikov Andrey Date: Thu, 21 Dec 2017 13:17:48 +0300 Subject: [PATCH] Set content-type application/x-www-form-urlencoded --- src/Message/AbstractRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Message/AbstractRequest.php b/src/Message/AbstractRequest.php index b7f5a41..db799f2 100644 --- a/src/Message/AbstractRequest.php +++ b/src/Message/AbstractRequest.php @@ -158,10 +158,10 @@ public function sendData($data) $this->getHttpMethod(), $url, $this->getHeaders(), - json_encode(array_merge([ + array_merge([ 'userName' => $this->getUserName(), 'password' => $this->getPassword() - ], $data)) + ], $data) ); $responseClassName = preg_replace('/Request/', 'Response', get_class($this));