Skip to content

Commit

Permalink
Set content-type application/x-www-form-urlencoded
Browse files Browse the repository at this point in the history
  • Loading branch information
Novikov Andrey committed Dec 21, 2017
1 parent 641e07c commit 84bfb17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 84bfb17

Please sign in to comment.