From 48a30cf5bb5a32ec35f450a9ae14d6100f37314b Mon Sep 17 00:00:00 2001 From: Cyril Mazur Date: Wed, 18 Nov 2020 11:18:02 +0100 Subject: [PATCH] Fix missing $cookies argument --- src/Concerns/MakesHttpRequests.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Concerns/MakesHttpRequests.php b/src/Concerns/MakesHttpRequests.php index aef2b08..8986fb0 100644 --- a/src/Concerns/MakesHttpRequests.php +++ b/src/Concerns/MakesHttpRequests.php @@ -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; @@ -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; }