Skip to content

Commit

Permalink
Add a newline before the last quotation mark in copy curl (#8561)
Browse files Browse the repository at this point in the history
Signed-off-by: Fanit Kolchina <[email protected]>
(cherry picked from commit 202d496)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Oct 17, 2024
1 parent bec022d commit a2e8c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/copy-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function addCurl(textToCopy) {
result += path + "\"";

if (body.length > 0) {
result += " -H 'Content-Type: application/json' -d'\n" + body + "'";
result += " -H 'Content-Type: application/json' -d'\n" + body + "\n'";
}

return result;
Expand Down

0 comments on commit a2e8c1c

Please sign in to comment.