Commit 1de3be8b authored by Matija Obreza's avatar Matija Obreza
Browse files

Fixed compile warnings for server

parent 5b4487e0
......@@ -4,7 +4,7 @@ import * as minimist from 'minimist';
const argv = minimist(process.argv.slice(2), {
string: ['--api-url', '--client-id', '--client-secret',
'--geonames-username',
'--genesys-url', '--genesys-client-id', '--genesys-client-secret'
'--genesys-url', '--genesys-client-id', '--genesys-client-secret',
],
});
console.dir(argv);
......
......@@ -28,10 +28,10 @@ const genesysProxy = proxy(config.genesysUrl, {
// insert /api
path = `/api${path}`;
// remove some heaaders
delete req.headers['host'];
delete req.headers['origin'];
delete req.headers['referer'];
delete req.headers['cookie'];
delete req.headers.host;
delete req.headers.origin;
delete req.headers.referer;
delete req.headers.cookie;
}
console.log(`HTTP proxy to ${config.genesysUrl}${path}`);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment