]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Fixing Response
[friendica.git] / src / App.php
index 30194af8e273e001b8ce72510c121b7f844f70af..c80518c1922b66770975d3b51c7e20a326d8fa2f 100644 (file)
@@ -704,7 +704,7 @@ class App
 
                        // Let the module run it's internal process (init, get, post, ...)
                        $response = $module->run($_POST, $_REQUEST);
-                       if ($response->getHeaderLine('X-RESPONSE-TYPE') === ICanCreateResponses::TYPE_HTML) {
+                       if ($response->getHeaderLine(ICanCreateResponses::X_HEADER) === ICanCreateResponses::TYPE_HTML) {
                                $page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig);
                        } else {
                                $page->exit($response);