Project

General

Profile

Actions

Feature #56236

closed

Allow multiple headers of the same type in config.additionalHeaders

Added by Marco Huber over 10 years ago. Updated about 6 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 1 (0 open1 closed)

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

Actions
Actions #1

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 = 
    }
}

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

Updated by Wouter Wolters almost 10 years ago

  • Status changed from Under Review to Resolved
Actions #8

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF