Skip to content

Commit

Permalink
#4 fixes issue of having escaped slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-dhulla committed Oct 29, 2024
1 parent f04f99d commit 6deffaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CurlCommandLineGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6deffaa

Please sign in to comment.