Skip to content

Commit

Permalink
🔥 Remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Oct 9, 2023
1 parent e193485 commit 4931af6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@ const gistUrl = new URL(core.getInput("gistID"), core.getInput("host"));
// This uses the method above to update a gist with the given data. The user agent is
// required as defined in https://developer.github.com/v3/#user-agent-required
async function updateGist(body) {
console.log("Updating gist...");
console.log(body);
console.log(body.length);

const length = new TextEncoder().encode(body).length;
console.log(length);

const headers = new Headers([
["Content-Type", "application/json"],
["Content-Length", length],
["Content-Length", new TextEncoder().encode(body).length],
["User-Agent", "Schneegans"],
["Authorization", `token ${core.getInput("auth")}`],
]);
Expand Down

0 comments on commit 4931af6

Please sign in to comment.