Skip to content

Commit

Permalink
Add a newline before the last quotation mark in copy curl (#8561) (#8562
Browse files Browse the repository at this point in the history
)
  • Loading branch information
opensearch-trigger-bot[bot] authored Oct 17, 2024
1 parent 67ec41c commit e4f1fa9
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 e4f1fa9

Please sign in to comment.