fix(Respond to Webhook Node): Fix issue that content-type header gets overwritten (#5088)

fix(Respond To Webhook Node): Fix issue that content-type header gets overwritten
This commit is contained in:
Jan Oberhauser 2023-01-04 22:43:32 -06:00 committed by GitHub
parent 5d746c4a83
commit 7954025eb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,7 +249,7 @@ export class RespondToWebhook implements INodeType {
); );
} }
if (headers['content-type']) { if (!headers['content-type']) {
headers['content-type'] = binaryData.mimeType; headers['content-type'] = binaryData.mimeType;
} }
responseBody = binaryDataBuffer; responseBody = binaryDataBuffer;