This is an automated email from the ASF dual-hosted git repository.

enapps-enorman pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter.git


The following commit(s) were added to refs/heads/master by this push:
     new 7e6c578  SLING-13246 allow a Content-Type response header with a 
charset (#641)
7e6c578 is described below

commit 7e6c578520d74bd520cf4f98dc7611f8513312db
Author: Eric Norman <[email protected]>
AuthorDate: Tue Jun 23 10:21:10 2026 -0700

    SLING-13246 allow a Content-Type response header with a charset (#641)
---
 src/test/java/org/apache/sling/starter/SmokeIT.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/sling/starter/SmokeIT.java 
b/src/test/java/org/apache/sling/starter/SmokeIT.java
index a8fd939..b010d2a 100644
--- a/src/test/java/org/apache/sling/starter/SmokeIT.java
+++ b/src/test/java/org/apache/sling/starter/SmokeIT.java
@@ -25,6 +25,7 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 import java.util.Map;
+import java.util.regex.Pattern;
 import java.util.stream.Stream;
 
 import org.apache.felix.utils.json.JSONParser;
@@ -198,7 +199,9 @@ public class SmokeIT {
                 }
 
                 Header contentType = response.getFirstHeader("Content-Type");
-                assertThat("Content-Type header", contentType.getValue(), 
equalTo("text/xml"));
+                assertThat(
+                        "Content-Type header",
+                        Pattern.matches("^text\\/xml(;\\s*charset=.*)?$", 
contentType.getValue()));
 
                 DocumentBuilderFactory dbf = 
DocumentBuilderFactory.newInstance();
                 dbf.setNamespaceAware(true);

Reply via email to