Skip to content

Commit

Permalink
Update CurlRequest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
evasyakin committed Aug 29, 2021
1 parent 637386d commit d4b3e8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CurlRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public function prepareSend(): CurlRequest

// добавляем данные запроса
if ('GET' !== $method) {
$type = $this->getHeader('Content-Type');
if (false !== strpos($type, 'application/json')) {
$this->withBodyJson($this->getBody());
}
// $type = $this->getHeader('Content-Type');
// if (false !== strpos($type, 'application/json')) {
// $this->withBodyJson($this->getBody());
// }
$body = $this->getBody();

if ('POST' === $method) curl_setopt($ch, CURLOPT_POST, 1);
Expand Down

0 comments on commit d4b3e8b

Please sign in to comment.