Support server-determined build expiration
This commit is contained in:
parent
a04f9a0e51
commit
d87335f5a6
14 changed files with 147 additions and 28 deletions
|
@ -22,6 +22,7 @@ import { app, BrowserWindow, dialog, ipcMain } from 'electron';
|
|||
|
||||
import { getTempPath } from '../../app/attachments';
|
||||
import { Dialogs } from '../types/Dialogs';
|
||||
import { getUserAgent } from '../util/getUserAgent';
|
||||
|
||||
// @ts-ignore
|
||||
import * as packageJson from '../../package.json';
|
||||
|
@ -324,7 +325,7 @@ function getGotOptions(): GotOptions<null> {
|
|||
ca,
|
||||
headers: {
|
||||
'Cache-Control': 'no-cache',
|
||||
'User-Agent': `Signal Desktop ${packageJson.version}`,
|
||||
'User-Agent': getUserAgent(packageJson.version),
|
||||
},
|
||||
useElectronNet: false,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue