Remove duplicate header on websocket requests

This commit is contained in:
Fedor Indutny
2026-02-17 10:52:38 -08:00
committed by GitHub
parent 2557e1d521
commit 668c5e76ec

View File

@@ -385,7 +385,9 @@ async function getFetchOptions<Type extends ResponseType, OutputShape>(
method: options.type,
body: typeof options.data === 'function' ? options.data() : options.data,
headers: {
'User-Agent': getUserAgent(options.version),
'User-Agent': options.socketManager
? undefined
: getUserAgent(options.version),
'X-Signal-Agent': 'OWD',
...options.headers,
} as FetchHeaderListType,