Skip to content

Commit

Permalink
Fix missing $cookies argument
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilMazur committed Nov 18, 2020
1 parent 288b542 commit 48a30cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/MakesHttpRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function json($method, $uri, array $data = [], array $headers = [])
], $headers);

$this->call(
$method, $uri, [], [], $files, $this->transformHeadersToServerVars($headers), $content
$method, $uri, [], $cookies, $files, $this->transformHeadersToServerVars($headers), $content
);

return $this;
Expand Down Expand Up @@ -212,7 +212,7 @@ public function get($uri, array $headers = [])
$server = $this->transformHeadersToServerVars($headers);
$cookies = $this->prepareCookiesForRequest();

$this->call('GET', $uri, [], [], [], $server);
$this->call('GET', $uri, [], $cookies, [], $server);

return $this;
}
Expand Down

0 comments on commit 48a30cf

Please sign in to comment.