Skip to content

Commit

Permalink
Merge pull request #5 from jigar-dhulla/feature/4-remove-escaped-slashes
Browse files Browse the repository at this point in the history
#4 fixes issue of having escaped slashes
  • Loading branch information
jigar-dhulla authored Oct 29, 2024
2 parents f04f99d + 6deffaa commit c5a71c2
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 c5a71c2

Please sign in to comment.