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 2023/01/20 19:04:50 UTC
[tomcat] 01/12: Fix logic
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org