]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371
authorCiaranG <ciaran@ciarang.com>
Wed, 1 Apr 2009 17:11:02 +0000 (18:11 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 1 Apr 2009 18:49:39 +0000 (14:49 -0400)
lib/util.php

index 98a3ae8448e50e8eadb5bf90558cc0249041183c..f08e707549b2746b7c12b19a1ff5e56b01da411e 100644 (file)
@@ -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();