From 5b499aee75bd81c465751446f6fa2d4e7f6f0443 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Thu, 29 May 2025 17:43:14 -0400 Subject: [PATCH] Content-type --- cli/src/Command/Ventas/MedioPagos/Toku/Enqueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/Command/Ventas/MedioPagos/Toku/Enqueue.php b/cli/src/Command/Ventas/MedioPagos/Toku/Enqueue.php index 1e2d8aa..d0a3728 100644 --- a/cli/src/Command/Ventas/MedioPagos/Toku/Enqueue.php +++ b/cli/src/Command/Ventas/MedioPagos/Toku/Enqueue.php @@ -18,7 +18,7 @@ class Enqueue extends Command $output->writeln("POST {$uri}"); $body = ['venta_ids' => explode('|', $input->getArgument('venta_ids'))]; $output->writeln(json_encode($body)); - $response = $this->client->post($uri, ['json' => $body]); + $response = $this->client->post($uri, ['json' => $body, 'headers' => ['Content-Type' => 'application/json']]); $output->writeln("Response Code: {$response->getStatusCode()}"); $output->writeln($response->getBody()->getContents()); return Console\Command\Command::SUCCESS;