From 6deffaa59e9275acde4d9af39299f82bea36193c Mon Sep 17 00:00:00 2001 From: Jigar Dhulla Date: Tue, 29 Oct 2024 23:14:18 +0530 Subject: [PATCH] #4 fixes issue of having escaped slashes --- src/CurlCommandLineGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CurlCommandLineGenerator.php b/src/CurlCommandLineGenerator.php index dce634d..6d7178b 100644 --- a/src/CurlCommandLineGenerator.php +++ b/src/CurlCommandLineGenerator.php @@ -22,7 +22,7 @@ public static function generate(Request $request, array $options = []): string if (in_array(strtolower($request->method()), ['post', 'put', 'patch'])) { // Set Data according to Json if ($request->isJson()) { - $data = json_encode($request->data()); + $data = json_encode($request->data(), JSON_UNESCAPED_SLASHES); } // Set Data according to Form