Feature #56236
closedAllow multiple headers of the same type in config.additionalHeaders
0%
Description
Sometimes you need to set multiple headers of the same type via config.additionalHeaders. As an example, I tried to set the X-Robots-Tag.
mypage.config.additionalHeaders = X-Robots-Tag: noarchive|X-Robots-Tag: nosnippet
But only the last one is delivered, becaus you can't set the replace parameter of the PHP function header(). (See http://php.net/header)
Updated by Marco Huber over 10 years ago
So perhaps we could extend the configuration to support all parameters:
mypage.config.additionalHeaders { 10 { #the header string string = X-Robots-Tag: noarchive #default for replace is 1 replace = 0 #default for httpResponseCode is NULL (unset) httpResponseCode = } 20 { #the header string string = X-Robots-Tag: nosnippet #default for replace is 1 replace = 0 #default for httpResponseCode is NULL (unset) httpResponseCode = } }
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27814
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27814
Updated by Gerrit Code Review over 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27814
Updated by Gerrit Code Review over 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27814
Updated by Gerrit Code Review almost 10 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/27814
Updated by Wouter Wolters almost 10 years ago
- Status changed from Under Review to Resolved