Skip to content

Commit 1b85da7

Browse files
authored
Ignore --location flag (#11)
1 parent 6b0e39b commit 1b85da7

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/Console/Commands/CurlCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class CurlCommand extends Command
99
{
10-
protected $signature = 'shift:curl {--X|request=} {--G|get} {--H|header=*} {--d|data=*} {--data-urlencode=*} {--F|form=*} {--digest} {--basic} {--connect-timeout=} {--max-timeout=} {--retry=} {--s|silent} {--u|user=} {url}';
10+
protected $signature = 'shift:curl {--X|request=} {--G|get} {--H|header=*} {--d|data=*} {--data-urlencode=*} {--F|form=*} {--digest} {--basic} {--connect-timeout=} {--max-timeout=} {--retry=} {--s|silent} {--u|user=} {--L|location} {url}';
1111

1212
protected $description = 'Convert a UNIX curl request to an HTTP Client request';
1313

tests/Feature/Console/Commands/CurlCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function curlCommandFixtures()
4040
'Stripe query params' => ['stripe-query-params'],
4141
'Initial connection timeout' => ['connect-timeout'],
4242
'Entire transaction timeout' => ['max-timeout'],
43+
'Ignore location flag' => ['ignore-location-flag'],
4344
];
4445
}
4546

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
curl --location https://example.com
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Http::get('https://example.com');

0 commit comments

Comments
 (0)