File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace Shift \CurlConverter \Console \Commands ;
44
5- use Shift \CurlConverter \Support \HttpCall ;
65use Illuminate \Console \Command ;
6+ use Shift \CurlConverter \Support \HttpCall ;
77
88class CurlCommand extends Command
99{
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public static function create(array $data): self
6262 $ request ->multipartFormData = true ;
6363 }
6464
65- if (! empty ( $ request ->data ) && $ request -> method === 'GET ' ) {
65+ if ($ request ->method === 'GET ' && (! empty ( $ data [ ' data ' ]) || ! empty ( $ data [ ' fields ' ])) ) {
6666 $ request ->method = 'POST ' ;
6767 }
6868
Original file line number Diff line number Diff line change 22
33namespace Shift \CurlConverter \Support ;
44
5- use Shift \CurlConverter \Models \Request ;
65use Illuminate \Support \Str ;
6+ use Shift \CurlConverter \Models \Request ;
77use Symfony \Component \VarExporter \VarExporter ;
88
99class HttpCall
You can’t perform that action at this time.
0 commit comments