The Wayback Machine - https://web.archive.org/web/20201107175637/https://github.com/http-party/http-server/issues/656
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

Posibility to disable adding of forward slash #656

Open
simplenotezy opened this issue Sep 26, 2020 · 0 comments
Open

Posibility to disable adding of forward slash #656

simplenotezy opened this issue Sep 26, 2020 · 0 comments

Comments

@simplenotezy
Copy link

@simplenotezy simplenotezy commented Sep 26, 2020

Steps to reproduce the issue, if applicable. Include the actual command and output and/or stack trace.

My web app have disabled forward slashes, but I experience an infinite loop because http-server sends a 301 redirect to contain forward slash if it is not present in the URL. Once my app has been loaded, and detect a forward slash, it will redirect to the version that does not contain the forward slash, and in loop it goes...

What did you expect to happen?

Forward slash should be an optional setting that can be disabled.

Tell us about your environment

  • exact http-server version: latest
  • Node version: v12.10
  • Platform: macos/linux

Other information (related issues, suggestions for a fix, etc):
#37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.