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 2fb79f5b15 Fix bug in RFC 7616 changes. Spotted by lihan.
2fb79f5b15 is described below

commit 2fb79f5b15bbed83ba598c83a670aa24e795eddd
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Mar 15 12:59:20 2023 +0000

    Fix bug in RFC 7616 changes. Spotted by lihan.
---
 java/org/apache/tomcat/websocket/DigestAuthenticator.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/java/org/apache/tomcat/websocket/DigestAuthenticator.java 
b/java/org/apache/tomcat/websocket/DigestAuthenticator.java
index e75810eba2..54d8aa579d 100644
--- a/java/org/apache/tomcat/websocket/DigestAuthenticator.java
+++ b/java/org/apache/tomcat/websocket/DigestAuthenticator.java
@@ -102,6 +102,7 @@ public class DigestAuthenticator extends Authenticator {
         boolean session = false;
         if (algorithm.endsWith("-sess")) {
             algorithm = algorithm.substring(0, algorithm.length() - 5);
+            session = true;
         }
 
         StringBuilder preDigest = new StringBuilder();


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

Reply via email to