]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Network.php
Initialize $permissions variable in ActivityPub\Transmitter::fetchPermissionBlockFrom...
[friendica.git] / src / Util / Network.php
index 9c7b6a8af8890957e5894a705798b79db5de52da..0d98cab2ed67a6095faa45d187724f3a28d69344 100644 (file)
@@ -25,6 +25,7 @@ use Friendica\Core\Hook;
 use Friendica\Core\Logger;
 use Friendica\DI;
 use Friendica\Model\Contact;
+use Friendica\Network\HTTPException\NotModifiedException;
 
 class Network
 {
@@ -434,7 +435,8 @@ class Network
         *
         * @param array $parsed URL parts
         *
-        * @return string The glued URL
+        * @return string The glued URL.
+        * @deprecated since version 2021.12, use a UriInterface object like GuzzleHttp\Psr7\Uri instead
         */
        public static function unparseURL(array $parsed)
        {
@@ -544,8 +546,7 @@ class Network
                header('Last-Modified: ' . $last_modified);
 
                if ($flag_not_modified) {
-                       header("HTTP/1.1 304 Not Modified");
-                       exit;
+                       throw new NotModifiedException();
                }
        }