Skip to content

Commit

Permalink
fix: delete the Host eader (#300)
Browse files Browse the repository at this point in the history
Fixes #295
Fixes #187
  • Loading branch information
wolfy1339 authored Aug 15, 2024
1 parent e1df3f7 commit 50bb037
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 50bb037

Please sign in to comment.