Commit 7745740
fix: prevent infinite redirect loop when ROOT_PATH is set (#950)
* fix: add curl to runtime stage for healthcheck support
Co-Authored-By: tariq.k.soliman <tariqksoliman@gmail.com>
* chore: bump version to 4.3.23-20260423 [version bump]
* fix: prevent infinite redirect loop when ROOT_PATH is set
When ROOT_PATH is set (e.g. /lunarsouthpole), Express non-strict route
matching causes app.get(ROOT_PATH) to match both /lunarsouthpole and
/lunarsouthpole/, creating an infinite 301 redirect loop.
Add a guard so the redirect only fires when the request path does NOT
already end with '/'. When it does, call next() to pass control to the
main application route handler.
Co-Authored-By: tariq.k.soliman <tariqksoliman@gmail.com>
* chore: bump version to 4.3.24-20260423 [version bump]
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 34b8bc0 commit 7745740
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
778 | | - | |
779 | | - | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
780 | 784 | | |
781 | 785 | | |
782 | 786 | | |
| |||
0 commit comments