mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: remove redundant headers
This commit is contained in:
@@ -29,15 +29,7 @@ export const makeSocket = ({
|
|||||||
const ws = new WebSocket(waWebSocketUrl, undefined, {
|
const ws = new WebSocket(waWebSocketUrl, undefined, {
|
||||||
origin: DEFAULT_ORIGIN,
|
origin: DEFAULT_ORIGIN,
|
||||||
timeout: connectTimeoutMs,
|
timeout: connectTimeoutMs,
|
||||||
agent,
|
agent
|
||||||
headers: {
|
|
||||||
'Accept-Encoding': 'gzip, deflate, br',
|
|
||||||
'Accept-Language': 'en-US,en;q=0.9',
|
|
||||||
'Cache-Control': 'no-cache',
|
|
||||||
'Host': 'web.whatsapp.com',
|
|
||||||
'Pragma': 'no-cache',
|
|
||||||
'Sec-WebSocket-Extensions': 'permessage-deflate; client_max_window_bits'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
ws.setMaxListeners(0)
|
ws.setMaxListeners(0)
|
||||||
const ev = new EventEmitter() as BaileysEventEmitter
|
const ev = new EventEmitter() as BaileysEventEmitter
|
||||||
|
|||||||
Reference in New Issue
Block a user