Skip to content

Commit 23ff879

Browse files
committed
fix get and head options
1 parent e6da0b8 commit 23ff879

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Http/Client/PendingRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ public function dd()
563563
*/
564564
public function get(string $url, $query = null)
565565
{
566-
return $this->send('GET', $url, [
566+
return $this->send('GET', $url, func_num_args() === 1 ? [] : [
567567
'query' => $query,
568568
]);
569569
}
@@ -577,7 +577,7 @@ public function get(string $url, $query = null)
577577
*/
578578
public function head(string $url, $query = null)
579579
{
580-
return $this->send('HEAD', $url, [
580+
return $this->send('HEAD', $url, func_num_args() === 1 ? [] : [
581581
'query' => $query,
582582
]);
583583
}

0 commit comments

Comments
 (0)