Append trailing / to config.host if not present

This commit is contained in:
Eliot Partridge
2019-09-24 18:32:04 -05:00
parent 344746ce26
commit 0e0a5caf7f
+5
View File
@@ -58,6 +58,11 @@ export const args = argv as AppArgs;
export const { version, description }: AppPackage = require('../../../package.json');
export const config: AppConfig = require('../../../config.json');
// append / to host if the server op forgot it
if (!config.host.endsWith('/')) {
config.host += '/';
}
const INSECURE_RANDOM_VALUES = [
'gfhfdshtrdhgedryhe4t3y5uwjthr',
'sdlfgihsdor8ghor8dgdrgdegrdg',