Skip to content

Commit

Permalink
Merge pull request #151 from CyrilMazur/fix_missing_cookies
Browse files Browse the repository at this point in the history
Fix missing $cookies argument
  • Loading branch information
taylorotwell authored Nov 18, 2020
2 parents 0baa03e + 48a30cf commit a5524f3
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 @@ -174,7 +174,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 @@ -213,7 +213,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 a5524f3

Please sign in to comment.