Proper HTML content type
This commit is contained in:
parent
c7c9563304
commit
05c0caa945
|
@ -367,7 +367,7 @@ App::error(function ($error, $utopia, $request, $response, $layout, $project) {
|
|||
->setParam('litespeed', false)
|
||||
;
|
||||
|
||||
$response->send($layout->render());
|
||||
$response->html($layout->render());
|
||||
}
|
||||
|
||||
$response->dynamic(new Document($output),
|
||||
|
|
|
@ -35,7 +35,7 @@ App::shutdown(function ($response, $layout) {
|
|||
->setParam('footer', [$footer])
|
||||
;
|
||||
|
||||
$response->send($layout->render());
|
||||
$response->html($layout->render());
|
||||
}, ['response', 'layout'], 'console');
|
||||
|
||||
App::get('/error/:code')
|
||||
|
|
|
@ -30,7 +30,7 @@ App::shutdown(function ($response, $layout) {
|
|||
/** @var Utopia\Response $response */
|
||||
/** @var Utopia\View $layout */
|
||||
|
||||
$response->send($layout->render());
|
||||
$response->html($layout->render());
|
||||
}, ['response', 'layout'], 'home');
|
||||
|
||||
App::get('/')
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
"appwrite/php-clamav": "1.0.*",
|
||||
|
||||
"utopia-php/framework": "0.8.2",
|
||||
"utopia-php/framework": "0.8.3",
|
||||
"utopia-php/abuse": "0.2.*",
|
||||
"utopia-php/audit": "0.3.*",
|
||||
"utopia-php/cache": "0.2.*",
|
||||
|
|
42
composer.lock
generated
42
composer.lock
generated
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "c9c02c8344b98a983e16152163f8d91a",
|
||||
"content-hash": "e784e5988f3c65a561242b2ab64d7a31",
|
||||
"packages": [
|
||||
{
|
||||
"name": "appwrite/php-clamav",
|
||||
|
@ -1596,16 +1596,16 @@
|
|||
},
|
||||
{
|
||||
"name": "utopia-php/framework",
|
||||
"version": "0.8.2",
|
||||
"version": "0.8.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/utopia-php/framework.git",
|
||||
"reference": "7fbd96667df44f5afe30c8c48edc82a649b3c16b"
|
||||
"reference": "e21725bdb52c93dc4b0acade33f03e098f0ceae7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/utopia-php/framework/zipball/7fbd96667df44f5afe30c8c48edc82a649b3c16b",
|
||||
"reference": "7fbd96667df44f5afe30c8c48edc82a649b3c16b",
|
||||
"url": "https://api.github.com/repos/utopia-php/framework/zipball/e21725bdb52c93dc4b0acade33f03e098f0ceae7",
|
||||
"reference": "e21725bdb52c93dc4b0acade33f03e098f0ceae7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1636,7 +1636,7 @@
|
|||
"php",
|
||||
"upf"
|
||||
],
|
||||
"time": "2020-07-07T04:23:03+00:00"
|
||||
"time": "2020-07-09T06:39:23+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/locale",
|
||||
|
@ -2141,12 +2141,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
||||
"reference": "41f77e86971e4abaca59b1c7de22cd04ac1bce27"
|
||||
"reference": "7c87da1725d657c73376ce8c37973abe006db7c0"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/41f77e86971e4abaca59b1c7de22cd04ac1bce27",
|
||||
"reference": "41f77e86971e4abaca59b1c7de22cd04ac1bce27",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/7c87da1725d657c73376ce8c37973abe006db7c0",
|
||||
"reference": "7c87da1725d657c73376ce8c37973abe006db7c0",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -2185,7 +2185,7 @@
|
|||
}
|
||||
],
|
||||
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
||||
"time": "2020-07-03T06:45:43+00:00"
|
||||
"time": "2020-07-07T14:44:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/type-resolver",
|
||||
|
@ -2239,12 +2239,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpspec/prophecy.git",
|
||||
"reference": "693f7f27d9bc2a1fac369ea20e6aff2cc7d96e9f"
|
||||
"reference": "f311f62e5f0f0f4249919f3eda478080c2f4da21"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/693f7f27d9bc2a1fac369ea20e6aff2cc7d96e9f",
|
||||
"reference": "693f7f27d9bc2a1fac369ea20e6aff2cc7d96e9f",
|
||||
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/f311f62e5f0f0f4249919f3eda478080c2f4da21",
|
||||
"reference": "f311f62e5f0f0f4249919f3eda478080c2f4da21",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -2261,7 +2261,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.10.x-dev"
|
||||
"dev-master": "1.11.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -2294,7 +2294,7 @@
|
|||
"spy",
|
||||
"stub"
|
||||
],
|
||||
"time": "2020-07-05T07:41:56+00:00"
|
||||
"time": "2020-07-08T22:35:36+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpunit/php-code-coverage",
|
||||
|
@ -3401,20 +3401,20 @@
|
|||
},
|
||||
{
|
||||
"name": "webmozart/assert",
|
||||
"version": "1.9.0",
|
||||
"version": "1.9.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/webmozart/assert.git",
|
||||
"reference": "9dc4f203e36f2b486149058bade43c851dd97451"
|
||||
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/webmozart/assert/zipball/9dc4f203e36f2b486149058bade43c851dd97451",
|
||||
"reference": "9dc4f203e36f2b486149058bade43c851dd97451",
|
||||
"url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
|
||||
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^5.3.3 || ^7.0",
|
||||
"php": "^5.3.3 || ^7.0 || ^8.0",
|
||||
"symfony/polyfill-ctype": "^1.8"
|
||||
},
|
||||
"conflict": {
|
||||
|
@ -3446,7 +3446,7 @@
|
|||
"check",
|
||||
"validate"
|
||||
],
|
||||
"time": "2020-06-16T10:16:42+00:00"
|
||||
"time": "2020-07-08T17:02:28+00:00"
|
||||
}
|
||||
],
|
||||
"aliases": [],
|
||||
|
|
Loading…
Reference in a new issue