add Connection: close when sending redirect

This commit is contained in:
Antonin Kral 2011-09-08 11:45:34 +02:00
parent 4f86e05d03
commit ab4f4dbab4
1 changed files with 2 additions and 1 deletions

View File

@ -851,7 +851,7 @@ function common_replace_urls_callback($text, $callback, $arg = null) {
* @param callable $callback
* @param mixed $arg optional argument to pass on as second param to callback
* @return string
*
*
* @access private
*/
function callback_helper($matches, $callback, $arg=null) {
@ -1425,6 +1425,7 @@ function common_redirect($url, $code=307)
header('HTTP/1.1 '.$code.' '.$status[$code]);
header("Location: $url");
header("Connection: close");
$xo = new XMLOutputter();
$xo->startXML('a',