1
0
Fork 0

Fixing Response

This commit is contained in:
Philipp Holzer 2021-11-22 00:07:09 +01:00
commit 6a9fff5100
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
11 changed files with 41 additions and 12 deletions

View 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);