mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 09:50:28 +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);
|
||||
code = r->code;
|
||||
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(
|
||||
SetStatus(code, GetHttpReason(code)), "Location",
|
||||
FreeLater(EncodeHttpHeaderValue(r->location.s, r->location.n, 0)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue