]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Response.php
Merge remote-tracking branch 'upstream/develop' into user-defined-channels
[friendica.git] / src / Module / Response.php
index ba7d4320271d275ed108a1a7d1167fa85139418a..78db953bb4a3b7ca24dc501fc389b1ced762eb70 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -89,7 +89,7 @@ class Response implements ICanCreateResponses
        /**
         * {@inheritDoc}
         */
-       public function setType(string $type, ?string $content_type = null): void
+       public function setType(string $type = Response::TYPE_HTML, ?string $content_type = null): void
        {
                if (!in_array($type, static::ALLOWED_TYPES)) {
                        throw new InternalServerErrorException('wrong type');