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