Skip to content

Commit

Permalink
Disable SPDY
Browse files Browse the repository at this point in the history
This solves the following issue: spdy-http2/node-spdy#350
  • Loading branch information
espadrine committed May 9, 2019
1 parent 88b259c commit 7c2cc1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.settings.json
/.prod-settings.json
/store/study.json
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const settings = require('./.settings.json');
const protocol = settings.http.tls? 'https': 'http';
const {key, cert, ca} = settings.http.tls || {};
const corsOrigins = settings.http.cors.origins;
const sc = camp.start({ port, secure: !!settings.http.tls, key, cert, ca });
const sc = camp.start({ port, secure: !!settings.http.tls, key, cert, ca,
spdy: false });
console.log(`${protocol}://${hostname}:${port}`);

sc.post('/submissions', (req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "make test"
},
"dependencies": {
"camp": "~17.2.2",
"camp": "~17.2.3",
"fsos": "~1.1.3"
}
}

0 comments on commit 7c2cc1b

Please sign in to comment.