From: Antonin Kral Date: Thu, 8 Sep 2011 09:45:34 +0000 (+0200) Subject: add Connection: close when sending redirect X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab4f4dbab45004588b777fe8359cfc0da8ee7173;p=quix0rs-gnu-social.git add Connection: close when sending redirect --- 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',