Skip to content

Commit

Permalink
🔧 Use string for content length
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Oct 9, 2023
1 parent 856e1f2 commit 99a1cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const gistUrl = new URL(core.getInput("gistID"), core.getInput("host"));
async function updateGist(body) {
const headers = new Headers([
["Content-Type", "application/json"],
["Content-Length", body.length],
["Content-Length", body.length.toStrinq()],
["User-Agent", "Schneegans"],
["Authorization", `token ${core.getInput("auth")}`],
]);
Expand Down

0 comments on commit 99a1cd3

Please sign in to comment.