Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Router.normalizePath #267

Open
mmaksymovych opened this issue Dec 8, 2021 · 1 comment
Open

Bug in Router.normalizePath #267

mmaksymovych opened this issue Dec 8, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@mmaksymovych
Copy link

Source of the issue - https://github.com/anttiviljami/openapi-backend/blob/a3503fb8162169b3784755457a27788e0d0b613a/src/router.ts#L244

Actual behavior
Currently, URLs like http://resource.co/somePath and http://resource.co//somePath (with an extra slash after .co) are treated as the same URLs by the OpenApiBackend router.

Expected behavior
Triggering URLs with an extra slash should throw 404 if they are not described by swagger spec.

@anttiviljami
Copy link
Member

agreed, PRs accepted

@anttiviljami anttiviljami added the bug Something isn't working label Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants