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

mg.redirect and mg.send_http_redirect fall in an infinite loop #1237

Open
egorkonovalov opened this issue Feb 12, 2024 · 0 comments
Open

mg.redirect and mg.send_http_redirect fall in an infinite loop #1237

egorkonovalov opened this issue Feb 12, 2024 · 0 comments

Comments

@egorkonovalov
Copy link

Using Lua script, I try to redirect a request to a different route. It leads to an infinite loop which loads the original index.lua over and over again until the webserver crashes. It never redirects to the path_two as well. No logs are written to an error log file.

/path_one/index.lua

mg.redirect('/path_two/')
-- or
mg.send_http_redirect('/path_two/', 403)

CivetWeb v1.16
Windows 11

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

No branches or pull requests

1 participant