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
commit bed84c18dab26993dd43cd3e28ed7fc0f8f7b737 Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Jan 20 14:38:56 2023 +0000 Fix logic --- java/org/apache/tomcat/util/http/parser/Priority.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/http/parser/Priority.java b/java/org/apache/tomcat/util/http/parser/Priority.java index 3142ba251c..0690bd0c41 100644 --- a/java/org/apache/tomcat/util/http/parser/Priority.java +++ b/java/org/apache/tomcat/util/http/parser/Priority.java @@ -73,7 +73,7 @@ public class Priority { if (urgencyListMember instanceof SfInteger) { long urgency = ((SfInteger) urgencyListMember).getVaue().longValue(); // If out of range, ignore it - if (urgency < 0 || urgency > 7) { + if (urgency > -1 && urgency < 8) { result.setUrgency((int) urgency); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org