[
https://issues.apache.org/jira/browse/SLING-11514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17576247#comment-17576247
]
Carsten Ziegeler commented on SLING-11514:
------------------------------------------
Add new option to RequestDispatcherOptions in
https://github.com/apache/sling-org-apache-sling-api/commit/1e99ec1c5e6f3d3aabd40126a4f374f62d26bbc2
> Provide dispatcher option to ignore header changes on include
> -------------------------------------------------------------
>
> Key: SLING-11514
> URL: https://issues.apache.org/jira/browse/SLING-11514
> Project: Sling
> Issue Type: New Feature
> Components: API, Engine
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Priority: Major
> Fix For: API 2.26.0, Engine 2.9.4
>
>
> The servlet specification states in section 9.3 that on dispatcher include
> (not forward), all changes to headers from the include must be ignored.
> As Sling is following the servlet spec for includes and forwards, Sling
> should do the same. However, after 15 years of allowing an include to change
> headers, this has a large potential to break existing applications.
> Therefore we should rather provide a dispatcher option, that can be set to
> force this new behaviour.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)