From 4611f894786fa586e8c475311d48b9c89561bcbd Mon Sep 17 00:00:00 2001 From: Dima Kreisserman Date: Sun, 29 Sep 2024 14:18:34 +0300 Subject: [PATCH] remove rawdata header --- index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.ts b/index.ts index 4f40600..a4b8577 100644 --- a/index.ts +++ b/index.ts @@ -78,6 +78,10 @@ class Client { // See https://github.com/probot/smee-client/issues/295 // See https://github.com/probot/smee-client/issues/187 delete headers["host"]; + // Don't forward the rawdata header. As it causes issues with some servers + // See https://github.com/probot/smee-client/issues/320 + delete headers["rawdata"]; + headers["content-length"] = Buffer.byteLength(body); headers["content-type"] = "application/json";