Add version number to user-agent header on outgoing requests

This commit is contained in:
Scott Nonnenberg 2020-01-16 16:53:35 -08:00
parent be6ae038dc
commit a271fe0eee
3 changed files with 20 additions and 4 deletions

View file

@ -273,7 +273,7 @@ function getGotOptions(): GotOptions<null> {
ca,
headers: {
'Cache-Control': 'no-cache',
'User-Agent': 'Signal Desktop (+https://signal.org/download)',
'User-Agent': `Signal Desktop ${packageJson.version}`,
},
useElectronNet: false,
};