You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks as though #199 introduced a bug causing an infinite redirect when using StaticOptions.Prefix. This issue is around path.Clean and passing in ctx.req.URL.Path. I think this should be checked against opt.Prefix rather than "/" but this requires a special case when opt.Prefix == "" which is the fault.
Put an index.html in the public directory and navigate to http://127.0.0.1:8000/public you should get served the index.html but instead will get an infinite redirect to /public/.
The text was updated successfully, but these errors were encountered:
It looks as though #199 introduced a bug causing an infinite redirect when using
StaticOptions.Prefix
. This issue is aroundpath.Clean
and passing inctx.req.URL.Path
. I think this should be checked againstopt.Prefix
rather than "/" but this requires a special case whenopt.Prefix == ""
which is the fault.Minimal example:
Put an
index.html
in thepublic
directory and navigate tohttp://127.0.0.1:8000/public
you should get served the index.html but instead will get an infinite redirect to/public/
.The text was updated successfully, but these errors were encountered: