diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-01-20 00:36:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-20 00:36:31 +0300 |
commit | 8565011b8d9eebd36781fed71d1d2965ce238c9f (patch) | |
tree | 74cb3e8f3ad1df0a0268f69b5b04ad75359fe880 /apps/theming/lib/Controller | |
parent | 13a5c5d64c3ef0942225f02e8d812e0a4f621aa9 (diff) | |
parent | be3ec7ffb78aa42731e4e1170b5c190549d87e75 (diff) |
Merge pull request #3144 from nextcloud/use-data-download-response
Use DataDownloadResponse
Diffstat (limited to 'apps/theming/lib/Controller')
-rw-r--r-- | apps/theming/lib/Controller/ThemingController.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php index 9145717c4a0..24ac1c7d8d5 100644 --- a/apps/theming/lib/Controller/ThemingController.php +++ b/apps/theming/lib/Controller/ThemingController.php @@ -446,8 +446,7 @@ class ThemingController extends Controller { cacheBuster: ' . json_encode($cacheBusterValue). ' }; })();'; - $response = new Http\DataDisplayResponse($responseJS); - $response->addHeader('Content-type', 'text/javascript'); + $response = new DataDownloadResponse($responseJS, 'javascript', 'text/javascript'); $response->addHeader('Expires', date(\DateTime::RFC2822, $this->timeFactory->getTime())); $response->addHeader('Pragma', 'cache'); $response->cacheFor(3600); |