Skip to content

Commit

Permalink
[chore] Fix type errors in server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Cohee1207 committed Oct 11, 2024
1 parent afc3bfb commit ab24271
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ if (!disableCsrf) {
getSecret: getCsrfSecret,
cookieName: 'X-CSRF-Token',
cookieOptions: {
httpOnly: true,
sameSite: 'strict',
secure: false,
},
Expand Down Expand Up @@ -831,7 +830,7 @@ function createHttpsServer(url) {
}, app);
server.on('error', reject);
server.on('listening', resolve);
server.listen(url.port || 443, url.hostname);
server.listen(Number(url.port || 443), url.hostname);
});
}

Expand All @@ -846,7 +845,7 @@ function createHttpServer(url) {
const server = http.createServer(app);
server.on('error', reject);
server.on('listening', resolve);
server.listen(url.port || 80, url.hostname);
server.listen(Number(url.port || 80), url.hostname);
});
}

Expand Down

0 comments on commit ab24271

Please sign in to comment.