Feature #56236

Allow multiple headers of the same type in config.additionalHeaders

Added by Marco Huber over 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-02-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)


Related issues

Precedes TYPO3 Core - Feature #23494: config.additionalHeaders - add stdWrapRejected2014-02-25

Actions
#1

Updated by Marco Huber over 7 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 = 
    }
}

#2

Updated by Gerrit Code Review over 7 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

#3

Updated by Gerrit Code Review over 7 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

#4

Updated by Gerrit Code Review over 7 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

#5

Updated by Gerrit Code Review over 7 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

#6

Updated by Gerrit Code Review over 6 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

#7

Updated by Wouter Wolters over 6 years ago

  • Status changed from Under Review to Resolved
#8

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF