]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Proxy.php
Some more API functions moved
[friendica.git] / src / Module / Proxy.php
index 15ef1c44128b70639fc337ef560a56f8023647f4..86b8a95cbb607a03183856a378bacbeebeaef2c3 100644 (file)
@@ -25,6 +25,7 @@ use Friendica\BaseModule;
 use Friendica\Core\Logger;
 use Friendica\Core\System;
 use Friendica\DI;
+use Friendica\Network\HTTPException\NotModifiedException;
 use Friendica\Object\Image;
 use Friendica\Util\HTTPSignature;
 use Friendica\Util\Images;
@@ -53,7 +54,6 @@ class Proxy extends BaseModule
                }
 
                if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {
-                       header("HTTP/1.1 304 Not Modified");
                        header("Last-Modified: " . gmdate("D, d M Y H:i:s", time()) . " GMT");
                        if (!empty($_SERVER["HTTP_IF_NONE_MATCH"])) {
                                header("Etag: " . $_SERVER["HTTP_IF_NONE_MATCH"]);
@@ -65,7 +65,7 @@ class Proxy extends BaseModule
                                header_remove("Expires");
                                header_remove("Cache-Control");
                        }
-                       exit;
+                       throw new NotModifiedException();
                }
 
                if (empty($request['url'])) {