Skip to content

Commit

Permalink
fix(binding-http/http-server): ignore traling slashes for backward co…
Browse files Browse the repository at this point in the history
…mpatibility
  • Loading branch information
relu91 committed Jul 19, 2023
1 parent 83f1d5b commit b333da3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/binding-http/src/http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default class HttpServer implements ProtocolServer {
}

const router = Router({
ignoreTrailingSlash: true,
defaultRoute(req, res) {
// url-rewrite feature in use ?
const pathname = req.url;
Expand Down

0 comments on commit b333da3

Please sign in to comment.