diff options
-rw-r--r-- | lib/private/AppFramework/Middleware/CompressionMiddleware.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/AppFramework/Middleware/CompressionMiddleware.php b/lib/private/AppFramework/Middleware/CompressionMiddleware.php index e0eb0e0883e..6956be76693 100644 --- a/lib/private/AppFramework/Middleware/CompressionMiddleware.php +++ b/lib/private/AppFramework/Middleware/CompressionMiddleware.php @@ -29,6 +29,7 @@ use OC\AppFramework\OCS\BaseResponse; use OCP\AppFramework\Http; use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Http\Response; +use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Middleware; use OCP\IRequest; @@ -67,6 +68,9 @@ class CompressionMiddleware extends Middleware { if ($response instanceof JSONResponse) { $allowGzip = true; } + if ($response instanceof TemplateResponse) { + $allowGzip = true; + } if ($allowGzip) { $this->useGZip = true; |