yaws icon indicating copy to clipboard operation
yaws copied to clipboard

Stop redirect loops

Open avtobiff opened this issue 10 months ago • 3 comments

Stop redirects if the server path equals redirect path. This stops redirect loops.

avtobiff avatar Jan 15 '25 12:01 avtobiff

Looks like redirect_with_trailing_slash is failing.

Can we also add a new test for redirect loops?

vinoski avatar Jan 15 '25 12:01 vinoski

Yes, I mixed up Prefix and Path when creating this change. Should be fixed in last push.

Wlil work on a test.

avtobiff avatar Jan 15 '25 13:01 avtobiff

Finally using the correct path (the (#arg.req)#http_request.path), but the redirect is still failing. Needs more work.

avtobiff avatar Jan 15 '25 14:01 avtobiff