Skip to content

Commit b00e22f

Browse files
committed
Use setHttpHeader() instead of setComponentParameter()
1 parent 30e5174 commit b00e22f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Classes/Controller/PostController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function rssAction(): string
133133
$channel->addItem($item);
134134
}
135135

136-
$this->response->setComponentParameter(SetHeaderComponent::class, 'Cache-Control', ['s-max-age=3600']);
136+
$this->response->setHttpHeader('Cache-Control', 's-max-age=3600');
137137
$this->response->setContentType('application/rss+xml');
138138

139139
$feed = new Feed();

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"neos/neos": "^5.0 || ^7.0",
15+
"neos/neos": "^7.0",
1616
"robertlemke/akismet": "^3.0",
1717
"robertlemke/rss": "^2.0",
1818
"flownative/gravatar": "^2.0"

0 commit comments

Comments
 (0)