mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
⚡ Add user agent field to Plivo-Node (#2572)
This commit is contained in:
parent
a479f4f084
commit
e505eea1bd
|
@ -9,6 +9,10 @@ import {
|
||||||
NodeOperationError,
|
NodeOperationError,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
|
import {
|
||||||
|
OptionsWithUri,
|
||||||
|
} from 'request';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make an API request to Plivo.
|
* Make an API request to Plivo.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +36,10 @@ export async function plivoApiRequest(
|
||||||
throw new NodeOperationError(this.getNode(), 'No credentials returned!');
|
throw new NodeOperationError(this.getNode(), 'No credentials returned!');
|
||||||
}
|
}
|
||||||
|
|
||||||
const options = {
|
const options: OptionsWithUri = {
|
||||||
|
headers: {
|
||||||
|
'user-agent': 'plivo-n8n',
|
||||||
|
},
|
||||||
method,
|
method,
|
||||||
form: body,
|
form: body,
|
||||||
qs,
|
qs,
|
||||||
|
|
Loading…
Reference in a new issue