Skip to content

Commit

Permalink
Add a newline before the last quotation mark in copy curl
Browse files Browse the repository at this point in the history
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
  • Loading branch information
kolchfa-aws committed Oct 17, 2024
1 parent 84a20f6 commit ca0f406
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 ca0f406

Please sign in to comment.