forked from GNUsocial/gnu-social
Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371
This commit is contained in:
parent
783d292739
commit
e3d5f965ae
@ -850,7 +850,7 @@ function common_redirect($url, $code=307)
|
||||
303 => "See Other",
|
||||
307 => "Temporary Redirect");
|
||||
|
||||
header("Status: ${code} $status[$code]");
|
||||
header('HTTP/1.1 '.$code.' '.$status[$code]);
|
||||
header("Location: $url");
|
||||
|
||||
$xo = new XMLOutputter();
|
||||
|
Loading…
Reference in New Issue
Block a user