Skip to content

Commit

Permalink
Merge pull request #6 from RonasIT/dpankratov/version-update
Browse files Browse the repository at this point in the history
Dpankratov/version update
  • Loading branch information
DenTray authored Jul 17, 2019
2 parents 9e16245 + 38b559e commit a9fd0c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/HttpRequestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace RonasIT\Support\Services;

use GuzzleHttp\Cookie\CookieJar;
use GuzzleHttp\Client;
use GuzzleHttp\Cookie\CookieJar;
use RonasIT\Support\Exceptions\UnknownRequestMethodException;

class HttpRequestService
Expand Down Expand Up @@ -85,6 +85,8 @@ protected function send($method, $url, $data = [], $headers = [])

$this->logResponse($response, $time);

$this->options = [];

return $response;
}

Expand Down Expand Up @@ -155,8 +157,6 @@ public function setConnectTimeout($seconds = 0)

private function setOptions($headers)
{
$this->options = [];

$this->options['headers'] = $headers;
$this->options['cookies'] = $this->cookies;
$this->options['allow_redirects'] = $this->allowRedirects;
Expand Down

0 comments on commit a9fd0c1

Please sign in to comment.