Skip to content

Commit

Permalink
fix: delete the Host eader
Browse files Browse the repository at this point in the history
Fixes #295
Fixes #187
  • Loading branch information
wolfy1339 committed Jul 22, 2024
1 parent 62ea3bb commit d3141e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ class Client {
headers[key] = data[key];
});

// Don't forward the host header. As it causes issues with some servers
// See https://github.com/probot/smee-client/issues/295
// See https://github.com/probot/smee-client/issues/187
delete headers["host"];
headers["content-length"] = Buffer.byteLength(body);
headers["content-type"] = "application/json";

Expand Down

0 comments on commit d3141e9

Please sign in to comment.