mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Rename parameter to match others and add dot to descriptions
This commit is contained in:
@@ -200,7 +200,7 @@ export class HttpRequest implements INodeType {
|
|||||||
name: 'jsonParameters',
|
name: 'jsonParameters',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'If the query and/or body parameter should be set via the value-key pair UI or JSON/RAW',
|
description: 'If the query and/or body parameter should be set via the value-key pair UI or JSON/RAW.',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -246,11 +246,11 @@ export class HttpRequest implements INodeType {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'MIME Type',
|
displayName: 'MIME Type',
|
||||||
name: 'bodyContentCustomMIMEType',
|
name: 'bodyContentCustomMimeType',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
placeholder: 'text/xml',
|
placeholder: 'text/xml',
|
||||||
description: 'Specify the mime type for raw/custom body type',
|
description: 'Specify the mime type for raw/custom body type.',
|
||||||
required: false,
|
required: false,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
@@ -615,11 +615,11 @@ export class HttpRequest implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add Content Type if any are set
|
// Add Content Type if any are set
|
||||||
if (options.bodyContentCustomMIMEType) {
|
if (options.bodyContentCustomMimeType) {
|
||||||
if(requestOptions.headers === undefined) {
|
if(requestOptions.headers === undefined) {
|
||||||
requestOptions.headers = {};
|
requestOptions.headers = {};
|
||||||
}
|
}
|
||||||
requestOptions.headers['Content-Type'] = options.bodyContentCustomMIMEType;
|
requestOptions.headers['Content-Type'] = options.bodyContentCustomMimeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add credentials if any are set
|
// Add credentials if any are set
|
||||||
|
|||||||
Reference in New Issue
Block a user