Skip to content

Commit

Permalink
fix(server): header contains new line
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Sep 13, 2017
1 parent d8ca16c commit c8afe54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Server {
constructor(private port: number, cacheSettings?: any, private preRun?: () => void) {
const argv = minimist(process.argv.slice(2));

this.apiKey = Helpers.readFile(argv['api']);
this.apiKey = Helpers.readFile(argv['api']).replace(/^\s+|\s+$/g, '');
Helpers.watchFile(argv['api'], file => this.apiKey = file.replace(/^\s+|\s+$/g, ''));

this.ssl.cert = Helpers.readFile(argv['cert']);
Expand Down

0 comments on commit c8afe54

Please sign in to comment.