Update redbean redirect message for clarity

This commit is contained in:
Paul Kulchenko 2021-10-16 10:57:36 -07:00
parent 8afc830355
commit 75cc0fbaa1

View file

@ -2915,7 +2915,7 @@ static char *HandleRedirect(struct Redirect *r) {
struct Asset *a; struct Asset *a;
if (!r->code && (a = GetAsset(r->location.s, r->location.n))) { if (!r->code && (a = GetAsset(r->location.s, r->location.n))) {
LockInc(&shared->c.rewrites); LockInc(&shared->c.rewrites);
DEBUGF("(rsp) rewriting to %`'s", r->location.s); DEBUGF("(rsp) internal redirect to %`'s", r->location.s);
if (!HasString(&loops, r->location.s, r->location.n)) { if (!HasString(&loops, r->location.s, r->location.n)) {
AddString(&loops, r->location.s, r->location.n); AddString(&loops, r->location.s, r->location.n);
return RoutePath(r->location.s, r->location.n); return RoutePath(r->location.s, r->location.n);