Removed user agent for now

This commit is contained in:
Adhiraj
2020-07-28 14:14:48 +05:30
parent 18cffdaa17
commit ed406439ce
2 changed files with 2 additions and 8 deletions

View File

@@ -126,10 +126,7 @@ export async function decodeMediaMessageBuffer(message: WAMessageContent, fetchH
}
// download the message
const headers = {
Origin: 'https://web.whatsapp.com',
...fetchHeaders
}
const headers = { Origin: 'https://web.whatsapp.com' }
const fetched = await fetch(messageContent.url, { headers })
const buffer = await fetched.buffer()