mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
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:
parent
5d746c4a83
commit
7954025eb2
|
@ -249,7 +249,7 @@ export class RespondToWebhook implements INodeType {
|
|||
);
|
||||
}
|
||||
|
||||
if (headers['content-type']) {
|
||||
if (!headers['content-type']) {
|
||||
headers['content-type'] = binaryData.mimeType;
|
||||
}
|
||||
responseBody = binaryDataBuffer;
|
||||
|
|
Loading…
Reference in a new issue