You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/10/06 17:05:35 UTC

[tomcat] branch main updated: Simplify

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

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 05ec18e2b5 Simplify
05ec18e2b5 is described below

commit 05ec18e2b5de579c84bfe85144e15f755a399c61
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Oct 6 18:05:17 2022 +0100

    Simplify
---
 .../catalina/authenticator/TestSSOnonLoginAndDigestAuthenticator.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/catalina/authenticator/TestSSOnonLoginAndDigestAuthenticator.java b/test/org/apache/catalina/authenticator/TestSSOnonLoginAndDigestAuthenticator.java
index c4efc3e63c..fbf14fe209 100644
--- a/test/org/apache/catalina/authenticator/TestSSOnonLoginAndDigestAuthenticator.java
+++ b/test/org/apache/catalina/authenticator/TestSSOnonLoginAndDigestAuthenticator.java
@@ -385,7 +385,7 @@ public class TestSSOnonLoginAndDigestAuthenticator extends TomcatBaseTest {
             respHeaders.get(AuthenticatorBase.AUTH_HEADER_NAME);
 
         // Assume there is only one
-        String authHeader = authHeaders.iterator().next();
+        String authHeader = authHeaders.get(0);
         String searchFor = token + AUTH_PREFIX;
         int start = authHeader.indexOf(searchFor) + searchFor.length();
         int end = authHeader.indexOf(AUTH_SUFFIX, start);


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org