mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Remove duplicate header on websocket requests
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user