mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 02:10:27 +00:00
Fix redbean crash during redirect in debug logging mode
This commit is contained in:
parent
425a57080d
commit
6e54e48e44
1 changed files with 1 additions and 1 deletions
|
@ -2929,7 +2929,7 @@ static char *HandleRedirect(struct Redirect *r) {
|
||||||
LockInc(&shared->c.redirects);
|
LockInc(&shared->c.redirects);
|
||||||
code = r->code;
|
code = r->code;
|
||||||
if (!code) code = 307;
|
if (!code) code = 307;
|
||||||
DEBUGF("(rsp) %d redirect to %`'s", code, r->location);
|
DEBUGF("(rsp) %d redirect to %`'s", code, r->location.s);
|
||||||
return AppendHeader(
|
return AppendHeader(
|
||||||
SetStatus(code, GetHttpReason(code)), "Location",
|
SetStatus(code, GetHttpReason(code)), "Location",
|
||||||
FreeLater(EncodeHttpHeaderValue(r->location.s, r->location.n, 0)));
|
FreeLater(EncodeHttpHeaderValue(r->location.s, r->location.n, 0)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue