Skip to content

Commit

Permalink
refactor: remove stripTrailingSlash from hapi config
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Oct 9, 2022
1 parent 71ee21d commit 22fd667
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/events/http/HttpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ export default class HttpServer {
const serverOptions = {
host,
port: httpPort,
router: {
// allows for paths with trailing slashes to be the same as without
// e.g. : /my-path is the same as /my-path/
stripTrailingSlash: false,
},
state: enforceSecureCookies
? {
isHttpOnly: true,
Expand Down
5 changes: 0 additions & 5 deletions src/events/websocket/HttpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ export default class HttpServer {
const serverOptions = {
host,
port: websocketPort,
router: {
// allows for paths with trailing slashes to be the same as without
// e.g. : /my-path is the same as /my-path/
stripTrailingSlash: true,
},
// https support
...(httpsProtocol != null && {
tls: await this.#loadCerts(httpsProtocol),
Expand Down

0 comments on commit 22fd667

Please sign in to comment.