From ab4f4dbab45004588b777fe8359cfc0da8ee7173 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Thu, 8 Sep 2011 11:45:34 +0200 Subject: [PATCH] add Connection: close when sending redirect --- lib/util.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 629d8326fd..16844b7e1a 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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', -- 2.39.5