@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** FileController.php */ |
| 11 | 11 | namespace Core\Controller; |
@@ -96,9 +96,9 @@ discard block |
||
| 96 | 96 | $expireDate->add(new \DateInterval('P1Y')); |
| 97 | 97 | |
| 98 | 98 | $headers->addHeaderline('Expires', $expireDate->format(\DateTime::W3C)) |
| 99 | - ->addHeaderLine('ETag', $file->getId()) |
|
| 100 | - ->addHeaderline('Cache-Control', 'public') |
|
| 101 | - ->addHeaderline('Pragma', 'cache'); |
|
| 99 | + ->addHeaderLine('ETag', $file->getId()) |
|
| 100 | + ->addHeaderline('Cache-Control', 'public') |
|
| 101 | + ->addHeaderline('Pragma', 'cache'); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | $response->sendHeaders(); |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | $this->acl($file); |
| 88 | 88 | |
| 89 | - $headers=$response->getHeaders(); |
|
| 89 | + $headers = $response->getHeaders(); |
|
| 90 | 90 | |
| 91 | 91 | $headers->addHeaderline('Content-Type', $file->getType()) |
| 92 | 92 | ->addHeaderline('Content-Length', $file->getLength()); |