mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Add user agent field to Plivo-Node (#2572)
This commit is contained in:
@@ -9,6 +9,10 @@ import {
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
OptionsWithUri,
|
||||
} from 'request';
|
||||
|
||||
/**
|
||||
* Make an API request to Plivo.
|
||||
*
|
||||
@@ -32,7 +36,10 @@ export async function plivoApiRequest(
|
||||
throw new NodeOperationError(this.getNode(), 'No credentials returned!');
|
||||
}
|
||||
|
||||
const options = {
|
||||
const options: OptionsWithUri = {
|
||||
headers: {
|
||||
'user-agent': 'plivo-n8n',
|
||||
},
|
||||
method,
|
||||
form: body,
|
||||
qs,
|
||||
|
||||
Reference in New Issue
Block a user