Added fetch agent

This commit is contained in:
Adhiraj
2020-10-06 12:55:38 +05:30
parent 9c34f35a7b
commit 15ba4b66fb
3 changed files with 12 additions and 4 deletions

View File

@@ -377,7 +377,7 @@ export class WAConnection extends EventEmitter {
method,
body,
headers: { Origin: DEFAULT_ORIGIN, ...(headers || {}) },
agent: agent || this.connectOptions.agent
agent: agent || this.connectOptions.fetchAgent
})
)
generateMessageTag (longTag: boolean = false) {