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 2
2
3
3
namespace Shift \CurlConverter \Console \Commands ;
4
4
5
- use Shift \CurlConverter \Support \HttpCall ;
6
5
use Illuminate \Console \Command ;
6
+ use Shift \CurlConverter \Support \HttpCall ;
7
7
8
8
class CurlCommand extends Command
9
9
{
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public static function create(array $data): self
62
62
$ request ->multipartFormData = true ;
63
63
}
64
64
65
- if (! empty ( $ request ->data ) && $ request -> method === 'GET ' ) {
65
+ if ($ request ->method === 'GET ' && (! empty ( $ data [ ' data ' ]) || ! empty ( $ data [ ' fields ' ])) ) {
66
66
$ request ->method = 'POST ' ;
67
67
}
68
68
Original file line number Diff line number Diff line change 2
2
3
3
namespace Shift \CurlConverter \Support ;
4
4
5
- use Shift \CurlConverter \Models \Request ;
6
5
use Illuminate \Support \Str ;
6
+ use Shift \CurlConverter \Models \Request ;
7
7
use Symfony \Component \VarExporter \VarExporter ;
8
8
9
9
class HttpCall
You can’t perform that action at this time.
0 commit comments