You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (Jira)" <ji...@apache.org> on 2026/06/22 18:27:00 UTC
[jira] [Updated] (SLING-13247) Update HeadServletTest to allow a Content-Type response header with a charset
[ https://issues.apache.org/jira/browse/SLING-13247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Norman updated SLING-13247:
--------------------------------
Description:
The latest versions of jetty are appending the charset to the Content-Type header of the response.
The result is the following assertion failing in the smote test. Fix by adjusting the value matching to allow an optional charset suffix.
{code:java}
HeadServletTest.htmlHead:91->assertCommonHeaders:65->assertResponseHeader:58 Expected regexp text/html for header Content-Type, header value is text/html;charset=utf-8{code}
was:
The latest versions of jetty are appending the charset to the Content-Type header of the response.
The result is the following assertion failing in the smote test. Fix by adjusting the value matching to allow an optional charset suffix.
{{}}
{code:java}
HeadServletTest.htmlHead:91->assertCommonHeaders:65->assertResponseHeader:58 Expected regexp text/html for header Content-Type, header value is text/html;charset=utf-8{code}
{{}}
> Update HeadServletTest to allow a Content-Type response header with a charset
> -----------------------------------------------------------------------------
>
> Key: SLING-13247
> URL: https://issues.apache.org/jira/browse/SLING-13247
> Project: Sling
> Issue Type: Improvement
> Reporter: Eric Norman
> Assignee: Eric Norman
> Priority: Major
> Fix For: Starter Integration Tests 15
>
>
> The latest versions of jetty are appending the charset to the Content-Type header of the response.
> The result is the following assertion failing in the smote test. Fix by adjusting the value matching to allow an optional charset suffix.
> {code:java}
> HeadServletTest.htmlHead:91->assertCommonHeaders:65->assertResponseHeader:58 Expected regexp text/html for header Content-Type, header value is text/html;charset=utf-8{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)