mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Removed user agent for now
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user