[java-plugin-shibd-saml] branch main updated: Harden test's Accept header.

Codeberg noreply at shibboleth.net
Tue Aug 18 19:10:18 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-plugin-shibd-saml.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd-saml/commit/37652b621d6673478cfb91506577a0a17c84915f

The following commit(s) were added to refs/heads/main by this push:
     new 37652b6  Harden test's Accept header.
37652b6 is described below

commit 37652b621d6673478cfb91506577a0a17c84915f
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Aug 18 15:10:02 2026 -0400

    Harden test's Accept header.
---
 .../net/shibboleth/sp/saml/flows/saml2/ECPSessionInitiatorFlowTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sp-saml-conf-impl/src/test/java/net/shibboleth/sp/saml/flows/saml2/ECPSessionInitiatorFlowTest.java b/sp-saml-conf-impl/src/test/java/net/shibboleth/sp/saml/flows/saml2/ECPSessionInitiatorFlowTest.java
index fa04d8b..a056b9d 100644
--- a/sp-saml-conf-impl/src/test/java/net/shibboleth/sp/saml/flows/saml2/ECPSessionInitiatorFlowTest.java
+++ b/sp-saml-conf-impl/src/test/java/net/shibboleth/sp/saml/flows/saml2/ECPSessionInitiatorFlowTest.java
@@ -255,7 +255,7 @@ public class ECPSessionInitiatorFlowTest extends AbstractSPFlowTest {
         final DDF headers = input.getmember(RemotedHttpServletRequest.STRUCTURE_NAME)
                 .addmember(RemotedHttpServletRequest.HEADERS).structure();
         
-        headers.addmember("Accept").unsafe_string(SAML2InitiatorConstants.PAOS_MEDIA_TYPE.getBytes(StandardCharsets.UTF_8));
+        headers.addmember("Accept").unsafe_string(("text/html, " + SAML2InitiatorConstants.PAOS_MEDIA_TYPE).getBytes(StandardCharsets.UTF_8));
         headers.addmember("PAOS").unsafe_string(builder.toString().getBytes(StandardCharsets.UTF_8));
     }
     

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list